function HookOrderTest::testAfterNoChange

@covers ::after

File

core/tests/Drupal/Tests/Core/Hook/HookOrderTest.php, line 127

Class

HookOrderTest
@coversDefaultClass \Drupal\Core\Hook\HookOrder

Namespace

Drupal\Tests\Core\Hook

Code

public function testAfterNoChange() : void {
    // "b' is already firing after "c", this should be a no-op.
    HookOrder::after($this->container, 'test', 'b::b');
    $this->assertNoChange();
}

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