protected function UserBehaviorSettingsFormTest::createEntityBundleFormSubmit in Rabbit Hole 8
Same name and namespace in other branches
- 2.x modules/rh_user/tests/src/Functional/UserBehaviorSettingsFormTest.php \Drupal\Tests\rh_user\Functional\UserBehaviorSettingsFormTest::createEntityBundleFormSubmit()
Creates new entity bundle via form submit.
Overrides RabbitHoleBehaviorSettingsFormTestBase::createEntityBundleFormSubmit
File
- modules/
rh_user/ tests/ src/ Functional/ UserBehaviorSettingsFormTest.php, line 63
Class
- UserBehaviorSettingsFormTest
- Test the functionality of the rabbit hole form additions to the user entity.
Namespace
Drupal\Tests\rh_user\FunctionalCode
protected function createEntityBundleFormSubmit($action, $override) {
$this
->drupalLogin($this->adminUser);
$edit = [
'rh_action' => $action,
'rh_override' => $override,
];
$this
->drupalGet('/admin/config/people/accounts');
$this
->assertRabbitHoleSettings();
$this
->submitForm($edit, 'Save configuration');
return 'user';
}