You are here

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

Test loading editable for nonexistent behavior settings returns NULL.

File

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

Class

RabbitHoleBehaviorSettingsTest
Test the RabbitHoleBehaviorSettings configuration entity functionality.

Namespace

Drupal\Tests\rabbit_hole\Functional

Code

public function testLoadNullEditable() {
  $editable = $this->behaviorSettingsManager
    ->loadBehaviorSettingsAsEditableConfig(self::DEFAULT_TEST_ENTITY, '6b92ed36-f17f-4799-97d0-ae1801ed37ff');
  $this
    ->assertNull($editable);
}