Skip to content

Commit

Permalink
fix: abstract endpoint with cache enabled test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepimpao committed Oct 27, 2023
1 parent ee6e2b0 commit 50dd125
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 50dd125

Please sign in to comment.