assertEquals('noaccess',$view->type); } public function testDisplay() { $view = new ViewNoaccess; $view->display(); $this->expectedString('

Warning: You do not have permission to access this module.

'); } }