Skip to content

Commit

Permalink
Add more stub methods to test factory
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Mar 23, 2020
1 parent 0259461 commit dd38734
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Test/EntityManagerMockFactoryTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ final protected function createEntityManagerMock(\Closure $qbCallback, array $fi
{
$query = $this->createMock(AbstractQuery::class);
$query->method('execute')->willReturn(true);
$query->method('getResult')->willReturn([]);
$query->method('getOneOrNullResult')->willReturn([]);

$qb = $this->createMock(QueryBuilder::class);

Expand Down

0 comments on commit dd38734

Please sign in to comment.