Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yii mocking model

I try to build a project using the Yii framework. Are there any possibility to mock a model object during functional tests?

like image 230
starter Avatar asked Dec 12 '25 16:12

starter


1 Answers

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.

like image 190
Paystey Avatar answered Dec 16 '25 20:12

Paystey