function 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 326
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.