function UnroutedUrlAssemblerTest::testAssembleWithNotEnabledProcessing

Same name and namespace in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php \Drupal\Tests\Core\Utility\UnroutedUrlAssemblerTest::testAssembleWithNotEnabledProcessing()
  2. 10 core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php \Drupal\Tests\Core\Utility\UnroutedUrlAssemblerTest::testAssembleWithNotEnabledProcessing()
  3. 11.x core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php \Drupal\Tests\Core\Utility\UnroutedUrlAssemblerTest::testAssembleWithNotEnabledProcessing()

@covers ::assemble

File

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

Class

UnroutedUrlAssemblerTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Utility%21UnroutedUrlAssembler.php/class/UnroutedUrlAssembler/9" title="Provides a way to build external or non Drupal local domain URLs." class="local">\Drupal\Core\Utility\UnroutedUrlAssembler</a> @group Utility

Namespace

Drupal\Tests\Core\Utility

Code

public function testAssembleWithNotEnabledProcessing() {
    $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.