function CompiledRouteLegacyTest::testDefaultsDynamicallySet
Tests to make sure we get an array when dynamically setting.
@covers ::getDefaults
File
-
core/
tests/ Drupal/ Tests/ Core/ Routing/ CompiledRouteLegacyTest.php, line 104
Class
- CompiledRouteLegacyTest
- @coversDefaultClass \Drupal\Core\Routing\CompiledRoute @group Routing @group legacy
Namespace
Drupal\Tests\Core\RoutingCode
public function testDefaultsDynamicallySet() {
$this->expectDeprecation('Drupal\\Core\\Routing\\CompiledRoute::getDefaults() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3159706');
$this->compiled_route->route = $this->mocked_route;
$this->compiled_route
->getDefaults();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.