public function PathProcessorFrontTest::testProcessInboundBadConfig in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorFrontTest.php \Drupal\Tests\Core\PathProcessor\PathProcessorFrontTest::testProcessInboundBadConfig()
 
Tests inbound failure with broken config.
@covers ::processInbound
File
- core/
tests/ Drupal/ Tests/ Core/ PathProcessor/ PathProcessorFrontTest.php, line 59  
Class
- PathProcessorFrontTest
 - Test front page path processing.
 
Namespace
Drupal\Tests\Core\PathProcessorCode
public function testProcessInboundBadConfig() {
  $config_factory = $this
    ->prophesize(ConfigFactoryInterface::class);
  $config = $this
    ->prophesize(ImmutableConfig::class);
  $config_factory
    ->get('system.site')
    ->willReturn($config
    ->reveal());
  $config
    ->get('page.front')
    ->willReturn('');
  $processor = new PathProcessorFront($config_factory
    ->reveal());
  $this
    ->expectException(NotFoundHttpException::class);
  $processor
    ->processInbound('/', new Request());
}