trait AssertConfigEntityImportTrait (View source)

deprecated in drupal:8.4.1 and is removed from drupal:9.0.0. Use \Drupal\Tests\config\Traits\AssertConfigEntityImportTrait.

Provides test assertions for testing config entity synchronization.

Can be used by test classes that extend \Drupal\simpletest\WebTestBase or \Drupal\KernelTests\KernelTestBase.

Methods

assertConfigEntityImport(ConfigEntityInterface $entity)

Asserts that a config entity can be imported without changing it.

Details

assertConfigEntityImport(ConfigEntityInterface $entity)

Asserts that a config entity can be imported without changing it.

Parameters

ConfigEntityInterface $entity

The config entity to test importing.