function LegacyMatcherDumperTest::testConstructorDeprecationWithLogger
Tests the constructor deprecations.
File
- 
              core/
tests/ Drupal/ KernelTests/ Core/ Routing/ LegacyMatcherDumperTest.php, line 66  
Class
- LegacyMatcherDumperTest
 - Tests deprecations in MatcherDumper.
 
Namespace
Drupal\KernelTests\Core\RoutingCode
public function testConstructorDeprecationWithLogger() : void {
  $logger = $this->createMock(LoggerInterface::class);
  $dumper = new MatcherDumper($this->connection, $this->state, $logger);
  $this->assertNotNull($dumper);
  $logger = $this->createMock(LoggerInterface::class);
  $dumper = new MatcherDumper($this->connection, $this->state, $logger, 'foo');
  $this->assertNotNull($dumper);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.