| 1 | <?php |
||
| 20 | abstract class FilterWithQueryBuilderTest extends TestCase |
||
| 21 | { |
||
| 22 | private $queryBuilder; |
||
| 23 | private $expr; |
||
| 24 | |||
| 25 | protected function setUp(): void |
||
| 26 | { |
||
| 27 | $this->queryBuilder = $this->createMock(Builder::class); |
||
| 28 | $this->queryBuilder |
||
| 29 | ->method('field') |
||
| 30 | ->with('field') |
||
| 31 | ->willReturnSelf() |
||
| 32 | ; |
||
| 33 | $this->expr = $this->createMock(Expr::class); |
||
| 34 | $this->expr |
||
| 35 | ->method('field') |
||
| 36 | ->willReturnSelf() |
||
| 37 | ; |
||
| 38 | $this->queryBuilder |
||
| 39 | ->method('expr') |
||
| 40 | ->willReturn($this->expr) |
||
| 41 | ; |
||
| 42 | } |
||
| 43 | |||
| 44 | protected function getQueryBuilder() |
||
| 48 | } |
||
| 49 |