KimaiTest\ViewTest::testInit PHP Method

testInit() public method

public testInit ( )
    public function testInit()
    {
        $myKga = new \Kimai_Config(array('foo' => 'bar'));
        $this->setKga($myKga);
        $view = new Kimai_View();
        $helperPaths = $view->getHelperPaths();
        $this->assertArrayHasKey('Zend_View_Helper_', $helperPaths);
        $this->assertContains(APPLICATION_PATH . '/templates/helpers/', $helperPaths['Zend_View_Helper_']);
        $scriptsPaths = $view->getScriptPaths();
        $this->assertContains(APPLICATION_PATH . '/templates/scripts/', $scriptsPaths);
        $vars = $view->getVars();
        $this->assertArrayHasKey('kga', $vars);
        $this->assertEquals($myKga, $vars['kga']);
    }
ViewTest