function HookOrderTest::testLastNoChange

@covers ::last

File

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

Class

HookOrderTest
@coversDefaultClass \Drupal\Core\Hook\HookOrder

Namespace

Drupal\Tests\Core\Hook

Code

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

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