Redaxscript\Tests\HookTest::testCollect PHP Method

testCollect() public method

testCollect
Since: 2.4.0
public testCollect ( )
    public function testCollect()
    {
        /* setup */
        Hook::construct($this->_registry);
        Hook::init();
        /* actual */
        $actualArray = Hook::collect('adminPanelNotification');
        /* compare */
        $this->assertEquals($actualArray['info']['Test dummy'][0], 'test');
    }