function RoutePreloaderTest::testConstructorDeprecation
@group legacy
File
- 
              core/
tests/ Drupal/ Tests/ Core/ Routing/ RoutePreloaderTest.php, line 182  
Class
- RoutePreloaderTest
 - @coversDefaultClass \Drupal\Core\Routing\RoutePreloader[[api-linebreak]] @group Routing
 
Namespace
Drupal\Tests\Core\RoutingCode
public function testConstructorDeprecation() : void {
  $this->expectDeprecation('Passing a cache bin to Drupal\\Core\\Routing\\RoutePreloader::__construct is deprecated in drupal:10.3.0 and will be removed before drupal:11.0.0. Caching is now managed by the state service. See https://www.drupal.org/node/3177901');
  new RoutePreloader($this->routeProvider, $this->state, $this->createMock('Drupal\\Core\\Cache\\CacheBackendInterface'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.