I try to build a project using the Yii framework. Are there any possibility to mock a model object during functional tests?
I think your looking for this:
http://www.yiiframework.com/doc/guide/1.1/en/test.fixture
Functional testing in Yii is stupendously simple. Create fixtures, Construct models, make assertions, Go.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With