function LegacyMatcherDumperTest::testConstructorDeprecationNoLogger
Same name in other branches
- 10 core/tests/Drupal/KernelTests/Core/Routing/LegacyMatcherDumperTest.php \Drupal\KernelTests\Core\Routing\LegacyMatcherDumperTest::testConstructorDeprecationNoLogger()
Tests the constructor deprecations.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Routing/ LegacyMatcherDumperTest.php, line 46
Class
- LegacyMatcherDumperTest
- Tests deprecations in MatcherDumper.
Namespace
Drupal\KernelTests\Core\RoutingCode
public function testConstructorDeprecationNoLogger() {
$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.