Total Complexity | 2 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class QueryTest extends AbstractQueryTest |
||
12 | { |
||
13 | protected ?string $driverName = 'mysql'; |
||
14 | |||
15 | /** |
||
16 | * Tests MySQL specific syntax for index hints. |
||
17 | */ |
||
18 | public function testQueryIndexHint(): void |
||
19 | { |
||
20 | $query = (new Query($this->getConnection()))->from([new Expression('{{%customer}} USE INDEX (primary)')]); |
||
21 | |||
22 | $row = $query->one(); |
||
23 | |||
24 | $this->assertArrayHasKey('id', $row); |
||
|
|||
25 | $this->assertArrayHasKey('name', $row); |
||
26 | $this->assertArrayHasKey('email', $row); |
||
27 | } |
||
28 | |||
29 | public function testLimitOffsetWithExpression(): void |
||
42 | } |
||
43 | } |
||
44 |