abstract protected function RabbitHoleBehaviorInvocationTestBase::createEntityBundle in Rabbit Hole 8
Same name and namespace in other branches
- 2.x tests/src/Functional/RabbitHoleBehaviorInvocationTestBase.php \Drupal\Tests\rabbit_hole\Functional\RabbitHoleBehaviorInvocationTestBase::createEntityBundle()
Creates new entity bundle.
Parameters
string $action: Rabbit Hole action.
Return value
string ID of the created bundle.
7 calls to RabbitHoleBehaviorInvocationTestBase::createEntityBundle()
- 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::createEntityBundle()
- GroupBehaviorInvocationTest::createEntityBundle in modules/
rh_group/ tests/ src/ Functional/ GroupBehaviorInvocationTest.php - Creates new entity bundle.
- NodeBehaviorInvocationTest::createEntityBundle in modules/
rh_node/ tests/ src/ Functional/ NodeBehaviorInvocationTest.php - Creates new entity bundle.
- ProductBehaviorInvocationTest::createEntityBundle in modules/
rh_commerce/ tests/ src/ Functional/ ProductBehaviorInvocationTest.php - Creates new entity bundle.
- TaxonomyBehaviorInvocationTest::createEntityBundle in modules/
rh_taxonomy/ tests/ src/ Functional/ TaxonomyBehaviorInvocationTest.php - Creates new entity bundle.
- UserBehaviorInvocationTest::createEntityBundle in modules/
rh_user/ tests/ src/ Functional/ UserBehaviorInvocationTest.php - Creates new entity bundle.
File
- tests/
src/ Functional/ RabbitHoleBehaviorInvocationTestBase.php, line 133
Class
- RabbitHoleBehaviorInvocationTestBase
- Base class for the rabbit hole behaviors invocation tests.
Namespace
Drupal\Tests\rabbit_hole\FunctionalCode
protected abstract function createEntityBundle($action = NULL);