Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
19 | public function testIlike(): void |
||
20 | { |
||
21 | $select = $this->compile( |
||
22 | $this->initQuery(), |
||
23 | new Filter\Any( |
||
24 | new Filter\Like('name', 'Antony'), |
||
25 | new Filter\Postgres\ILike('email', '@example.') |
||
26 | ) |
||
27 | ); |
||
28 | |||
29 | $this->assertEqualSQL( |
||
30 | 'SELECT * FROM "users" WHERE (("name" LIKE \'%Antony%\') OR ("email" ILIKE \'%@example.%\'))', |
||
31 | $select |
||
|
|||
32 | ); |
||
52 |