function HookOrderEqualPriorityTest::setUp
Overrides UnitTestCase::setUp
File
-
core/
tests/ Drupal/ Tests/ Core/ Hook/ HookOrderEqualPriorityTest.php, line 16
Class
- HookOrderEqualPriorityTest
- @coversDefaultClass \Drupal\Core\Hook\HookOrder
Namespace
Drupal\Tests\Core\HookCode
protected function setUp() : void {
parent::setUp();
// The priority of "a", "b", "c" are the same, the order is undefined.
$this->setUpContainer(FALSE);
$this->assertSame($this->getPriority('a'), $this->getPriority('b'));
$this->assertSame($this->getPriority('b'), $this->getPriority('c'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.