public function RabbitHoleBehaviorSettingsTest::testBundleSettings in Rabbit Hole 8
Same name and namespace in other branches
- 2.x 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\FunctionalCode
public function testBundleSettings() {
$this
->saveAndTestExpectedValues('page_not_found', __METHOD__, self::DEFAULT_TEST_ENTITY_TYPE, $this->testNodeType
->id());
$this
->deleteTestNodeType();
}