You are here

public function RabbitHoleBehaviorSettingsTest::testSettings 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::testSettings()

Test that a BehaviorSettings can be found and contains correct values.

Test that a saved BehaviorSettings entity can be found by the config system and contains the correct values.

File

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

Class

RabbitHoleBehaviorSettingsTest
Test the RabbitHoleBehaviorSettings configuration entity functionality.

Namespace

Drupal\Tests\rabbit_hole\Functional

Code

public function testSettings() {
  $this
    ->saveAndTestExpectedValues(self::DEFAULT_ACTION, __METHOD__, self::DEFAULT_TEST_ENTITY_TYPE, $this->testNodeType
    ->id());
}