Handle deny all in testing web interface through Yii

murad770

New Member
I have a controller with the following access rules:\[code\]array('deny', // deny all users 'users'=>array('*'),),\[/code\]I want to test that code (every user authorized or not can't access to this controller via the web) and have the following:\[code\]public function testShow(){ $this->open('?r=link');}\[/code\]But I get the following error in my console:\[quote\] 1) LinkTest::testShow
PHPUnit_Framework_Exception: Response from Selenium RC server for testComplete().
XHR ERROR: URL = http://127.0.0.1/url/index-test.php/?r=link Response_Code = 403 Error_Message = >
CHttpException.\[/quote\]I want to make a test where I can ensure that link controller not visible via web.
 
Back
Top