You are here

public function RabbitHoleBehaviorSettingsTest::testBundleSettings in Rabbit Hole 2.x

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

Test that a BehaviourSettings can be given an ID and found later.

Test that a saved BehaviourSettings entity can be given an ID based on a generated bundle (a NodeType in this case) and be found based on that ID.

File

tests/src/Functional/RabbitHoleBehaviorSettingsTest.php, line 101

Class

RabbitHoleBehaviorSettingsTest
Test the RabbitHoleBehaviorSettings configuration entity functionality.

Namespace

Drupal\Tests\rabbit_hole\Functional

Code

public function testBundleSettings() {
  $this
    ->saveAndTestExpectedValues('page_not_found', __METHOD__, self::DEFAULT_TEST_ENTITY_TYPE, $this->testNodeType
    ->id());
  $this
    ->deleteTestNodeType();
}