Skip to content

Commit

Permalink
Add assertion to check non-empty result in CacheTypeTest
Browse files Browse the repository at this point in the history
Ensure `$ro` cast to string is not empty in the `testFetch` method. This additional assertion enhances the test to validate that the resource's returned data is not only a specific format but also non-empty.
  • Loading branch information
koriym committed Nov 24, 2024
1 parent c156bf7 commit 0f6d283
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/CacheTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public function testValue(): void
$this->assertSame('1' . $time, $ro->view);
$ro = $this->resource->get($uri);
(string) $ro;
$result = (string) $ro;
$this->assertNotEmpty($result);
$this->assertSame('2' . $time, $ro->view);
}

Expand Down

0 comments on commit 0f6d283

Please sign in to comment.