function RouteBuilderTest::testRebuildLockingUnlocking
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php \Drupal\Tests\Core\Routing\RouteBuilderTest::testRebuildLockingUnlocking()
- 8.9.x core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php \Drupal\Tests\Core\Routing\RouteBuilderTest::testRebuildLockingUnlocking()
- 10 core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php \Drupal\Tests\Core\Routing\RouteBuilderTest::testRebuildLockingUnlocking()
Tests that the route rebuilding both locks and unlocks.
File
-
core/
tests/ Drupal/ Tests/ Core/ Routing/ RouteBuilderTest.php, line 102
Class
- RouteBuilderTest
- @coversDefaultClass \Drupal\Core\Routing\RouteBuilder @group Routing
Namespace
Drupal\Tests\Core\RoutingCode
public function testRebuildLockingUnlocking() : void {
$this->lock
->expects($this->once())
->method('acquire')
->with('router_rebuild')
->willReturn(TRUE);
$this->lock
->expects($this->once())
->method('release')
->with('router_rebuild');
$this->yamlDiscovery
->expects($this->any())
->method('findAll')
->willReturn([]);
$this->assertTrue($this->routeBuilder
->rebuild());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.