public function LinkTypeConfirmFormTest::doCreateFlag in Flag 8.4
Create a flag.
1 call to LinkTypeConfirmFormTest::doCreateFlag()
- LinkTypeConfirmFormTest::testCreateConfirmFlag in tests/
src/ Functional/ LinkTypeConfirmFormTest.php - Test the confirm form link type.
File
- tests/
src/ Functional/ LinkTypeConfirmFormTest.php, line 36
Class
- LinkTypeConfirmFormTest
- Tests the confirm form link type.
Namespace
Drupal\Tests\flag\FunctionalCode
public function doCreateFlag() {
$edit = [
'bundles' => [
$this->nodeType,
],
'linkTypeConfig' => [
'flag_confirmation' => $this->flagConfirmMessage,
'unflag_confirmation' => $this->unflagConfirmMessage,
'flag_create_button' => $this->createButtonText,
'flag_delete_button' => $this->deleteButtonText,
],
'link_type' => 'confirm',
];
$this->flag = $this
->createFlagFromArray($edit);
}