You are here

abstract protected function RabbitHoleBehaviorSettingsFormTestBase::createEntity in Rabbit Hole 2.x

Same name and namespace in other branches
  1. 8 tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php \Drupal\Tests\rabbit_hole\Functional\RabbitHoleBehaviorSettingsFormTestBase::createEntity()

Creates new entity.

Parameters

string $action: Rabbit Hole action.

Return value

int ID of the created entity.

3 calls to RabbitHoleBehaviorSettingsFormTestBase::createEntity()
RabbitHoleBehaviorSettingsFormTestBase::testExistingEntityNoConfigSave in tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php
Test saving settings for entity that did not previously have them.
RabbitHoleBehaviorSettingsFormTestBase::testExistingEntitySave in tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php
Test that existing entity is edited on saving the entity form.
RabbitHoleBehaviorSettingsFormTestBase::testExistingEntitySettingsLoad in tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php
Test that entity form correctly loads previously saved behavior settings.
6 methods override RabbitHoleBehaviorSettingsFormTestBase::createEntity()
GroupBehaviorSettingsFormTest::createEntity in modules/rh_group/tests/src/Functional/GroupBehaviorSettingsFormTest.php
Creates new entity.
MediaBehaviorSettingsFormTest::createEntity in modules/rh_media/tests/src/Functional/MediaBehaviorSettingsFormTest.php
Creates new entity.
NodeBehaviorSettingsFormTest::createEntity in modules/rh_node/tests/src/Functional/NodeBehaviorSettingsFormTest.php
Creates new entity.
ProductBehaviorSettingsFormTest::createEntity in modules/rh_commerce/tests/src/Functional/ProductBehaviorSettingsFormTest.php
Creates new entity.
TaxonomyBehaviorSettingsFormTest::createEntity in modules/rh_taxonomy/tests/src/Functional/TaxonomyBehaviorSettingsFormTest.php
Creates new entity.

... See full list

File

tests/src/Functional/RabbitHoleBehaviorSettingsFormTestBase.php, line 421

Class

RabbitHoleBehaviorSettingsFormTestBase
Base class for the Rabbit Hole form additions tests.

Namespace

Drupal\Tests\rabbit_hole\Functional

Code

protected abstract function createEntity($action = NULL);