1
有没有可能测试CakePHP插件?单元测试CakePHP插件
我所有的核心控制器和模型试验,工作正常,但是当我尝试测试我的插件的控制器,它给我的错误:
Trying to get property of non-object
见下面我的代码:
public function testTest() {
$result = $this->testAction("/MyPluginController/trst",array("return"=>"vars"));
debug($result);
}
有什么建议吗?
感谢您提前