private function RabbitHoleBehaviorSettingsEntityMethodsTest::createGenericTestEntity in Rabbit Hole 8
Same name and namespace in other branches
- 2.x tests/src/Functional/RabbitHoleBehaviorSettingsEntityMethodsTest.php \Drupal\Tests\rabbit_hole\Functional\RabbitHoleBehaviorSettingsEntityMethodsTest::createGenericTestEntity()
Create a generic test BehaviorSettings entity.
4 calls to RabbitHoleBehaviorSettingsEntityMethodsTest::createGenericTestEntity()
- RabbitHoleBehaviorSettingsEntityMethodsTest::testSetAction in tests/
src/ Functional/ RabbitHoleBehaviorSettingsEntityMethodsTest.php - Test that setAction() works as expected.
- RabbitHoleBehaviorSettingsEntityMethodsTest::testSetAllowOverride in tests/
src/ Functional/ RabbitHoleBehaviorSettingsEntityMethodsTest.php - Test that setAllowOverride works as expected.
- RabbitHoleBehaviorSettingsEntityMethodsTest::testSetRedirectCode in tests/
src/ Functional/ RabbitHoleBehaviorSettingsEntityMethodsTest.php - Test that setRedirectCode works as expected.
- RabbitHoleBehaviorSettingsEntityMethodsTest::testSetRedirectPath in tests/
src/ Functional/ RabbitHoleBehaviorSettingsEntityMethodsTest.php - Test that setRedirectPath works as expected.
File
- tests/
src/ Functional/ RabbitHoleBehaviorSettingsEntityMethodsTest.php, line 150
Class
- RabbitHoleBehaviorSettingsEntityMethodsTest
- Test the functionality of the rabbit hole form additions to the node form.
Namespace
Drupal\Tests\rabbit_hole\FunctionalCode
private function createGenericTestEntity() {
return BehaviorSettings::create([
'id' => 'test_behavior_settings',
'action' => 'access_denied',
'redirect_code' => BehaviorSettings::REDIRECT_NOT_APPLICABLE,
'redirect' => NULL,
]);
}