If i add at the beginning creation of used model:

    public function testUserApproveExceptionId() {
        $model = $this->getContext()->getModel('User.Manager');
        $stub = $this->getMock('User_ManagerModel');
        $stub->expects($this->any())
.......


then Mocking of Models class works ok.
Just autoload needed for models used by mock's?
Tnaks

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to