/** * testGetEvents * * @since 2.4.0 */ public function testGetEvents() { /* setup */ Hook::init($this->_registry); Hook::trigger('render'); /* actual */ $actual = Hook::getEvents(); /* compare */ $this->assertArrayHasKey('render', $actual); }