function HookOrderTest::testBeforeNoChange
@covers ::before
File
-
core/
tests/ Drupal/ Tests/ Core/ Hook/ HookOrderTest.php, line 118
Class
- HookOrderTest
- @coversDefaultClass \Drupal\Core\Hook\HookOrder
Namespace
Drupal\Tests\Core\HookCode
public function testBeforeNoChange() : void {
// "b" is already firing before "a", this should be a no-op.
HookOrder::before($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.