function LinksetControllerTest::testDisabledEndpoint
Same name in other branches
- 11.x core/modules/system/tests/src/Functional/Menu/LinksetControllerTest.php \Drupal\Tests\system\Functional\Menu\LinksetControllerTest::testDisabledEndpoint()
Test that api route does not exist if the config option is disabled.
File
-
core/
modules/ system/ tests/ src/ Functional/ Menu/ LinksetControllerTest.php, line 329
Class
- LinksetControllerTest
- Tests the behavior of the linkset controller.
Namespace
Drupal\Tests\system\Functional\MenuCode
public function testDisabledEndpoint() : void {
$this->doRequest('GET', Url::fromUri('base:/system/menu/main/linkset'), 404);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.