public function AdminUITest::doFlagEdit in Flag 8.4
Check the flag edit form.
1 call to AdminUITest::doFlagEdit()
- AdminUITest::testFlagAdmin in tests/
src/ Functional/ AdminUITest.php - Test basic flag admin.
File
- tests/
src/ Functional/ AdminUITest.php, line 133
Class
- AdminUITest
- Tests the Flag admin UI.
Namespace
Drupal\Tests\flag\FunctionalCode
public function doFlagEdit() {
$this
->drupalGet('admin/structure/flags/manage/' . $this->flagId);
// Assert the global form element is disabled when editing the flag.
$this
->assertSession()
->elementAttributeExists('css', '#edit-global-0', 'disabled');
}