function HookLoaderTest::testHookOrder

Test hook implementation order.

File

core/tests/Drupal/KernelTests/Core/Hook/HookLoaderTest.php, line 31

Class

HookLoaderTest
Test hook loading.

Namespace

Drupal\KernelTests\Core\Hook

Code

public function testHookOrder() : void {
  $this->assertSameCallList([
    CircularDependencyHooks::class . '::testHook',
  ], \Drupal::moduleHandler()->invokeAll('test_hook'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.