function UnroutedUrlAssemblerTest::testAssembleWithNotEnabledProcessing

Tests assemble with not enabled processing.

@legacy-covers ::assemble

File

core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php, line 156

Class

UnroutedUrlAssemblerTest
Tests Drupal\Core\Utility\UnroutedUrlAssembler.

Namespace

Drupal\Tests\Core\Utility

Code

public function testAssembleWithNotEnabledProcessing() : void {
  $this->setupRequestStack(FALSE);
  $this->pathProcessor
    ->expects($this->never())
    ->method('processOutbound');
  $result = $this->unroutedUrlAssembler
    ->assemble('base:test-uri', []);
  $this->assertEquals('/test-uri', $result);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.