You are here

public function PathProcessorFrontTest::testProcessOutbound in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorFrontTest.php \Drupal\Tests\Core\PathProcessor\PathProcessorFrontTest::testProcessOutbound()

Test basic outbound processing functionality.

@covers ::processOutbound @dataProvider providerProcessOutbound

File

core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorFrontTest.php, line 77

Class

PathProcessorFrontTest
Test front page path processing.

Namespace

Drupal\Tests\Core\PathProcessor

Code

public function testProcessOutbound($path, $expected) {
  $config_factory = $this
    ->prophesize(ConfigFactoryInterface::class);
  $processor = new PathProcessorFront($config_factory
    ->reveal());
  $this
    ->assertEquals($expected, $processor
    ->processOutbound($path));
}