| @@ 52-61 (lines=10) @@ | ||
| 49 | $this->getFilter($qb, 'a')->shouldReturn(sprintf('a.%s IS EMPTY', $this->field)); |
|
| 50 | } |
|
| 51 | ||
| 52 | public function it_calls_empty_in_context(QueryBuilder $qb): void |
|
| 53 | { |
|
| 54 | $this->beConstructedWith($this->field, 'user'); |
|
| 55 | ||
| 56 | $qb->getDQLPart('join')->willReturn([]); |
|
| 57 | $qb->getAllAliases()->willReturn([]); |
|
| 58 | $qb->join('root.user', 'user')->willReturn($qb); |
|
| 59 | ||
| 60 | $this->getFilter($qb, 'root')->shouldReturn(sprintf('user.%s IS EMPTY', $this->field)); |
|
| 61 | } |
|
| 62 | ||
| 63 | public function it_filter_array_collection(): void |
|
| 64 | { |
|
| @@ 55-64 (lines=10) @@ | ||
| 52 | $this->transform($qb, $context)->shouldReturn($expression); |
|
| 53 | } |
|
| 54 | ||
| 55 | public function it_is_in_context(QueryBuilder $qb): void |
|
| 56 | { |
|
| 57 | $this->beConstructedWith($this->fieldName, 'user'); |
|
| 58 | ||
| 59 | $qb->getDQLPart('join')->willReturn([]); |
|
| 60 | $qb->getAllAliases()->willReturn([]); |
|
| 61 | $qb->join('root.user', 'user')->willReturn($qb); |
|
| 62 | ||
| 63 | $this->transform($qb, 'root')->shouldReturn(sprintf('user.%s', $this->fieldName)); |
|
| 64 | } |
|
| 65 | ||
| 66 | public function it_is_executable_object(): void |
|
| 67 | { |
|