Level 41
Which dependencies are you mocking? Can you pls share the code for the full test case?
I want to test a redirect:
$this->disableCookieEncryption()
->withoutExceptionHandling()
->get(route('test', ['hash' => 123]))
->assertRedirect($redirect);
but i got :
Mockery\Exception\BadMethodCallException : Received Mockery_2_Illuminate_Encryption_Encrypter::getKey(), but no expectations were specified
/var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:180
/var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67
why the disable methods not working ?
Please or to participate in this conversation.