function LegacyMatcherDumperTest::testConstructorDeprecationWithLegacyTableNameParam
Same name in other branches
- 11.x core/tests/Drupal/KernelTests/Core/Routing/LegacyMatcherDumperTest.php \Drupal\KernelTests\Core\Routing\LegacyMatcherDumperTest::testConstructorDeprecationWithLegacyTableNameParam()
Tests the constructor deprecations.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Routing/ LegacyMatcherDumperTest.php, line 57
Class
- LegacyMatcherDumperTest
- Tests deprecations in MatcherDumper.
Namespace
Drupal\KernelTests\Core\RoutingCode
public function testConstructorDeprecationWithLegacyTableNameParam() : 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, 'foo');
$this->assertNotNull($dumper);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.