Skip to content

Commit

Permalink
Merge pull request #57 from programmatordev/SPA-66-fix-cache-test
Browse files Browse the repository at this point in the history
Fix abstract endpoint with cache enabled test
  • Loading branch information
andrepimpao authored Oct 27, 2023
2 parents ee6e2b0 + 50dd125 commit 33dedde
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/AbstractEndpointTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Nyholm\Psr7\Response;
use ProgrammatorDev\SportMonksFootball\Endpoint\AbstractEndpoint;
use ProgrammatorDev\SportMonksFootball\SportMonksFootball;
use Psr\Cache\CacheItemInterface;
use Psr\Cache\CacheItemPoolInterface;
use Psr\Log\LoggerInterface;

Expand All @@ -17,6 +18,10 @@ public function testAbstractEndpointWithCache()
);

$cache = $this->createMock(CacheItemPoolInterface::class);
$cache->method('getItem')->willReturn(
$this->createMock(CacheItemInterface::class)
);

$cache->expects($this->once())->method('save');

$api = $this->givenApi();
Expand Down

0 comments on commit 33dedde

Please sign in to comment.