Working state
This commit is contained in:
@@ -159,7 +159,7 @@ final class PostRepositoryTest extends TestCase
|
||||
public function testFindRecentReturnsEmptyArray(): void
|
||||
{
|
||||
$stmt = $this->stmtForRead([]);
|
||||
$this->db->method('prepare')->willReturn($stmt);
|
||||
$this->db->expects($this->once())->method('prepare')->willReturn($stmt);
|
||||
|
||||
$this->assertSame([], $this->repository->findRecent(5));
|
||||
}
|
||||
@@ -170,7 +170,7 @@ final class PostRepositoryTest extends TestCase
|
||||
public function testFindRecentPassesLimitCorrectly(): void
|
||||
{
|
||||
$stmt = $this->stmtForRead([]);
|
||||
$this->db->method('prepare')->willReturn($stmt);
|
||||
$this->db->expects($this->once())->method('prepare')->willReturn($stmt);
|
||||
|
||||
$stmt->expects($this->once())
|
||||
->method('bindValue')
|
||||
|
||||
Reference in New Issue
Block a user