Bolt\Tests\Twig\AdminHandlerTest::testStack PHP Method

testStack() public method

public testStack ( )
    public function testStack()
    {
        $app = $this->getApp();
        $stack = $this->getMockStack();
        $stack->expects($this->exactly(3))->method('getList')->withConsecutive([['other', 'document']], [['other', 'document']], [[]]);
        $app['stack'] = $stack;
        $handler = new AdminHandler($app);
        $handler->stack(['other', 'document']);
        $handler->stack('other, document');
        $handler->stack('');
    }