| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 21 | public function testSelect() |
||
| 22 | { |
||
| 23 | $posts = TableRegistry::getTableLocator()->get('Posts'); |
||
| 24 | |||
| 25 | $expected = ' |
||
| 26 | SELECT |
||
| 27 | Posts.* AS "Posts__*" |
||
| 28 | FROM |
||
| 29 | posts Posts |
||
| 30 | ORDER BY |
||
| 31 | modified ASC |
||
| 32 | '; |
||
| 33 | |||
| 34 | $actual = $posts->find() |
||
| 35 | ->select(['*']) |
||
| 36 | ->orderAsc('modified') |
||
| 37 | ->sql(); |
||
| 38 | |||
| 39 | $this->assertSqlEquals($expected, $actual); |
||
| 40 | } |
||
| 90 |