function HookOrderTest::testBothParametersHookOrder

Tests hook order when both parameters are passed to RelativeOrderBase.

This tests when both $modules and $classesAndMethods are passed as parameters to OrderAfter.

File

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

Class

HookOrderTest
@group Hook @group legacy

Namespace

Drupal\KernelTests\Core\Hook

Code

public function testBothParametersHookOrder() : void {
    $this->assertSameCallList([
        BHooks::class . '::testBothParametersHook',
        CHooks::class . '::testBothParametersHook',
        AHooks::class . '::testBothParametersHook',
    ], \Drupal::moduleHandler()->invokeAll('test_both_parameters_hook'));
}

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