2 years ago

#66095

test-img

atshbi

Behat could not load mock class already exists

I am trying to mock a class in Laravel using the following. However, I get the following error. Any ideas?

Could not load mock \App\Repositories\FetchDataEndpoints\Test, class already exists.

\Mockery::mock('overload:\App\Repositories\FetchDataEndpoints\Test')
    ->shouldReceive([
        'getPaymentStatus' => 'test'
]);

laravel

unit-testing

mocking

behat

gherkin

0 Answers

Your Answer

Accepted video resources