abstract protected function RabbitHoleBehaviorInvocationTestBase::createEntity in Rabbit Hole 8
Same name and namespace in other branches
- 2.x tests/src/Functional/RabbitHoleBehaviorInvocationTestBase.php \Drupal\Tests\rabbit_hole\Functional\RabbitHoleBehaviorInvocationTestBase::createEntity()
Creates new entity.
Parameters
string $action: Rabbit Hole action.
Return value
\Drupal\Core\Entity\EntityInterface Created entity.
7 calls to RabbitHoleBehaviorInvocationTestBase::createEntity()
- RabbitHoleBehaviorInvocationTestBase::testAccessDenied in tests/
src/ Functional/ RabbitHoleBehaviorInvocationTestBase.php - Test that an entity set to access_denied returns a 403 response.
- RabbitHoleBehaviorInvocationTestBase::testDefaultToBundle in tests/
src/ Functional/ RabbitHoleBehaviorInvocationTestBase.php - Test action not set or set to bundle_default will default to bundle action.
- RabbitHoleBehaviorInvocationTestBase::testDisplayPage in tests/
src/ Functional/ RabbitHoleBehaviorInvocationTestBase.php - Test that an entity set to display_page returns a 200 response.
- RabbitHoleBehaviorInvocationTestBase::testEntityDefaults in tests/
src/ Functional/ RabbitHoleBehaviorInvocationTestBase.php - Test that a fresh entity with a fresh bundle takes the default action.
- RabbitHoleBehaviorInvocationTestBase::testPageNotFound in tests/
src/ Functional/ RabbitHoleBehaviorInvocationTestBase.php - Test that an entity set to page_not_found overrides returns a 404.
5 methods override RabbitHoleBehaviorInvocationTestBase::createEntity()
- GroupBehaviorInvocationTest::createEntity in modules/
rh_group/ tests/ src/ Functional/ GroupBehaviorInvocationTest.php - Creates new entity.
- NodeBehaviorInvocationTest::createEntity in modules/
rh_node/ tests/ src/ Functional/ NodeBehaviorInvocationTest.php - Creates new entity.
- ProductBehaviorInvocationTest::createEntity in modules/
rh_commerce/ tests/ src/ Functional/ ProductBehaviorInvocationTest.php - Creates new entity.
- TaxonomyBehaviorInvocationTest::createEntity in modules/
rh_taxonomy/ tests/ src/ Functional/ TaxonomyBehaviorInvocationTest.php - Creates new entity.
- UserBehaviorInvocationTest::createEntity in modules/
rh_user/ tests/ src/ Functional/ UserBehaviorInvocationTest.php - Creates new entity.
File
- tests/
src/ Functional/ RabbitHoleBehaviorInvocationTestBase.php, line 144
Class
- RabbitHoleBehaviorInvocationTestBase
- Base class for the rabbit hole behaviors invocation tests.
Namespace
Drupal\Tests\rabbit_hole\FunctionalCode
protected abstract function createEntity($action = NULL);