mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 09:32:15 +09:00
Unit test 오타 수정.
- 맨 마지막 AND는 제거되는 것이 의도가 맞음. - Distinct가 없는 예시.
This commit is contained in:
parent
3ff91018cc
commit
b3abdfd696
1 changed files with 2 additions and 2 deletions
|
|
@ -77,9 +77,9 @@ class DBQueryParserTest extends \Codeception\TestCase\Test
|
||||||
$sql = $query->getQueryString('rx_', $args);
|
$sql = $query->getQueryString('rx_', $args);
|
||||||
$params = $query->getQueryParams();
|
$params = $query->getQueryParams();
|
||||||
|
|
||||||
$this->assertEquals('SELECT DISTINCT * FROM `rx_documents` AS `documents` ' .
|
$this->assertEquals('SELECT * FROM `rx_documents` AS `documents` ' .
|
||||||
'WHERE (`list_order` >= ? AND `list_order` < ?) AND ' .
|
'WHERE (`list_order` >= ? AND `list_order` < ?) AND ' .
|
||||||
'((`title` LIKE ? AND `title` NOT LIKE ?) OR (`content` LIKE ? AND `content` NOT LIKE ?)) AND ' .
|
'((`title` LIKE ? AND `title` NOT LIKE ?) OR (`content` LIKE ? AND `content` NOT LIKE ?)) ' .
|
||||||
'ORDER BY `list_order` ASC LIMIT 40, 20', $sql);
|
'ORDER BY `list_order` ASC LIMIT 40, 20', $sql);
|
||||||
$this->assertEquals(['1234', '4567', 'I love you', 'I hate you', 'I love you', 'I hate you'], $params);
|
$this->assertEquals(['1234', '4567', 'I love you', 'I hate you', 'I love you', 'I hate you'], $params);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue