Skip to content

Commit

Permalink
Fix dummy storage return
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Apr 4, 2024
1 parent cd52563 commit d3978eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/drivers/storage/DummyStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public static function displayName(): string
*/
public bool $isDummy = true;

public function get(SiteUriModel $siteUri): string
public function get(SiteUriModel $siteUri): ?string
{
return '';
return null;
}

public function save(string $value, SiteUriModel $siteUri, int $duration = null, bool $allowEncoding = true): void
Expand Down
2 changes: 1 addition & 1 deletion tests/pest/Feature/CacheRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
expect(Blitz::$plugin->cacheRequest->getIsDynamicInclude('/_dynamic/xyz'))
->toBeFalse()
->and(Blitz::$plugin->cacheRequest->getIsDynamicInclude('/_dynamic?action=' . CacheRequestService::DYNAMIC_INCLUDE_ACTION))
->toBeTrue();;
->toBeTrue();
});

test('Request with dynamic include action is a dynamic include', function() {
Expand Down

0 comments on commit d3978eb

Please sign in to comment.