0
如何對受密碼保護的視圖執行CakePHP單元測試?CakePHP - 單元測試管理視圖
我看到有關管理控制器,但沒有意見http://mark-story.com/posts/view/testing-cakephp-controllers-the-hard-way
所以基本上現在我的斷言,是因爲密碼頁面的失敗的文章。
$this->get($this->baseurl . '/admin/items');
$this->assertText('Title');
感謝,
三通
我有同樣的問題,檢查這裏的答案: [我如何測試圖,其中需要進行身份驗證,使用CakePHP和SimpleTest的] [1] [1]:http://stackoverflow.com/questions/5337934/how-can-i-test-view-where-authentication-is-required-with-cakephp-and-simpletest – kaklon 2011-08-24 09:03:00