Skip to content

Commit

Permalink
fix unittest
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
  • Loading branch information
Grotax committed Aug 18, 2022
1 parent d8b3912 commit 589cc6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Unit/Db/NewsMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function testPurgeEmptyAll()
->will($this->returnSelf());

$qb->expects($this->once())
->method('execute');
->method('executeStatement');

$result = $this->class->purgeDeleted(null, null);
}
Expand Down Expand Up @@ -202,7 +202,7 @@ public function testPurgeUser()
->will($this->returnSelf());

$qb->expects($this->once())
->method('execute');
->method('executeStatement');

$result = $this->class->purgeDeleted('jack', null);
}
Expand Down Expand Up @@ -235,7 +235,7 @@ public function testPurgeTime()
->will($this->returnSelf());

$qb->expects($this->once())
->method('execute');
->method('executeStatement');

$result = $this->class->purgeDeleted(null, 1);
}
Expand Down Expand Up @@ -268,7 +268,7 @@ public function testPurgeBoth()
->will($this->returnSelf());

$qb->expects($this->once())
->method('execute');
->method('executeStatement');

$result = $this->class->purgeDeleted('jack', 1);
}
Expand Down

0 comments on commit 589cc6b

Please sign in to comment.