public function MenuLinkContentFormTest::testMenuLinkContentFormValidation in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/menu_link_content/src/Tests/MenuLinkContentFormTest.php \Drupal\menu_link_content\Tests\MenuLinkContentFormTest::testMenuLinkContentFormValidation()
Tests validation for the MenuLinkContentForm class.
File
- core/
modules/ menu_link_content/ src/ Tests/ MenuLinkContentFormTest.php, line 59 - Contains \Drupal\menu_link_content\Tests\MenuLinkContentFormTest.
Class
- MenuLinkContentFormTest
- Tests the menu link content UI.
Namespace
Drupal\menu_link_content\TestsCode
public function testMenuLinkContentFormValidation() {
$this
->drupalGet('admin/structure/menu/manage/admin/add');
$this
->drupalPostForm(NULL, array(
'title[0][value]' => t('Test page'),
'link[0][uri]' => '<test>',
), t('Save'));
$this
->assertText(t('Manually entered paths should start with /, ? or #.'));
}