public function MenuItemExtrasRenderTest::testRenderClearCache in Menu Item Extras 8.2
Render errors availability test.
File
- tests/
src/ Functional/ MenuItemExtrasRenderTest.php, line 199
Class
- MenuItemExtrasRenderTest
- Rendering menu items tests.
Namespace
Drupal\Tests\menu_item_extras\FunctionalCode
public function testRenderClearCache() {
$assert = $this
->assertSession();
$this
->drupalLogin($this->rootUser);
foreach ($this->links as $link) {
$this
->drupalGet(Url::fromRoute('entity.menu_link_content.edit_form', [
'menu_link_content' => $link['entity_id'],
]));
$assert
->pageTextContains($link['title']);
$assert
->pageTextContains($link['field_body']);
}
}