function HookLoaderTest::testHookOrder

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/KernelTests/Core/Hook/HookLoaderTest.php \Drupal\KernelTests\Core\Hook\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.