function HookOrderTest::testFirstNoChange

@covers ::first

File

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

Class

HookOrderTest
@coversDefaultClass \Drupal\Core\Hook\HookOrder

Namespace

Drupal\Tests\Core\Hook

Code

public function testFirstNoChange() : void {
    // "c" was first, making it first should be a no-op.
    HookOrder::first($this->container, 'test', 'c::c');
    $this->assertNoChange();
}

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