function LegacyMatcherDumperTest::testConstructorDeprecationNoLogger
Tests the constructor deprecations.
File
- 
              core/
tests/ Drupal/ KernelTests/ Core/ Routing/ LegacyMatcherDumperTest.php, line 48  
Class
- LegacyMatcherDumperTest
 - Tests deprecations in MatcherDumper.
 
Namespace
Drupal\KernelTests\Core\RoutingCode
public function testConstructorDeprecationNoLogger() : void {
  $this->expectDeprecation('Calling Drupal\\Core\\Routing\\MatcherDumper::__construct() without the $logger argument is deprecated in drupal:10.1.0 and it will be required in drupal:11.0.0. See https://www.drupal.org/node/2932520');
  $dumper = new MatcherDumper($this->connection, $this->state);
  $this->assertNotNull($dumper);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.