function LinksetControllerTest::testDisabledEndpoint

Same name and namespace in other branches
  1. 10 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\Menu

Code

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.