mercredi 23 novembre 2016

Cant mock Cache::rememberForever

using the following code

Cache::shouldReceive('rememberForever')

Gives

Mockery_1_Illuminate_Cache_CacheManager::rememberForever() does not exist on this mock object

The call works (something is cached) but just cant test it.

The others seem ok Cache::get for example

How should this be mocked ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire