You are here

public function EntityPredeleteHookTest::testHookWeight in Entity Reference Integrity 8

Test the weight of entity_predelete implementations.

File

modules/entity_reference_integrity_enforce/tests/src/Kernel/EntityPredeleteHookTest.php, line 27

Class

EntityPredeleteHookTest
Test the predelete hook.

Namespace

Drupal\Tests\entity_reference_integrity_enforce\Kernel

Code

public function testHookWeight() {
  $implementations = \Drupal::moduleHandler()
    ->getImplementations('entity_predelete');
  $this
    ->assertEquals('entity_reference_integrity_enforce', array_shift($implementations));
}