Exemplo n.º 1
0
 /**
  * Test adding script to header
  */
 public function testAddJsScript()
 {
     $config = Config::getInstance();
     $controller = new TestController(true);
     $controller->addHeaderJavaScript('plugins/hellothinkup/assets/js/test.js');
     $results = $controller->go();
     //test if view javascript variable is set correctly
     $v_mgr = $controller->getViewManager();
     $scripts = $v_mgr->getTemplateDataItem('header_scripts');
     $this->assertEqual($scripts[0], 'plugins/hellothinkup/assets/js/test.js');
 }