function HookOrderTest::testHookReorderProcedural

Test procedural implementation with Reorder and Remove.

File

core/tests/Drupal/KernelTests/Core/Hook/HookOrderTest.php, line 101

Class

HookOrderTest
Tests Hook Order.

Namespace

Drupal\KernelTests\Core\Hook

Code

public function testHookReorderProcedural() : void {
  $this->assertSameCallList([
    'bbb_hook_order_test_test_procedural_reorder',
    AHooks::class . '::testProceduralReorder',
  ], \Drupal::moduleHandler()->invokeAll('test_procedural_reorder'));
}

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