vendredi 25 septembre 2015

Mockery cannot create a partial mock with Eloquent Model fill method

I'm trying to test a Laravel api. When I try to create a partial mock with the Eloquent Model fill method, phpunit throws an error.

Code

$mock = m::mock('Illuminate\Database\Eloquent\Model[fill]');

Error

BadMethodCallException: Method Mockery_13_Illuminate_Database_Eloquent_Model::fill() does not exist on this mock object

I really don't know if this either a Eloquent bug, or a Mockery error.

Links

http://ift.tt/1R6DFtO



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire