function LinksetControllerMultiLingualTest::testDefaultMultilingualFunctions
Same name in other branches
- 11.x core/modules/system/tests/src/Functional/Menu/LinksetControllerMultiLingualTest.php \Drupal\Tests\system\Functional\Menu\LinksetControllerMultiLingualTest::testDefaultMultilingualFunctions()
Test core functions of the linkset for multilingual behavior.
Throws
\Exception
File
-
core/
modules/ system/ tests/ src/ Functional/ Menu/ LinksetControllerMultiLingualTest.php, line 217
Class
- LinksetControllerMultiLingualTest
- Tests the behavior of the linkset controller in multilingual setup.
Namespace
Drupal\Tests\system\Functional\MenuCode
public function testDefaultMultilingualFunctions() : void {
$expected_linkset = $this->getReferenceLinksetDataFromFile(__DIR__ . '/../../../fixtures/linkset/linkset-menu-main-multilingual-default.json');
$response = $this->doRequest('GET', Url::fromUri('base:/system/menu/main/linkset'));
$this->assertSame($expected_linkset, Json::decode((string) $response->getBody()));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.