public function LinkTypeFieldEntryTest::doFlagUIfieldPlugin in Flag 8.4
Test the flag field entry plugin UI.
File
- tests/
src/ Functional/ LinkTypeFieldEntryTest.php, line 65
Class
- LinkTypeFieldEntryTest
- Test the Field Entry link type.
Namespace
Drupal\Tests\flag\FunctionalCode
public function doFlagUIfieldPlugin() {
$this
->drupalPostForm('admin/structure/flags/add', [], t('Continue'));
// Update the flag.
$edit = [
'link_type' => 'field_entry',
];
$this
->drupalPostAjaxForm(NULL, $edit, 'link_type');
// Check confirm form field entry.
$this
->assertText(t('Flag confirmation message'));
$this
->assertText(t('Enter flagging details message'));
$this
->assertText(t('Unflag confirmation message'));
}