mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 08:41:39 +09:00
#1517 보완: 따옴표 escape 처리에 대한 유닛 테스트 추가
This commit is contained in:
parent
7a982f134e
commit
09456462f4
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ class DBQueryParserTest extends \Codeception\TestCase\Test
|
|||
$this->assertEquals('SELECT * FROM `rx_documents` AS `documents` WHERE ((`content` LIKE ? AND `content` LIKE ?) AND `content` NOT LIKE ?)', $sql);
|
||||
$this->assertEquals(['%search%', '%keyword\\\\Z%', '%-42%'], $params);
|
||||
|
||||
$args = array('s_content' => '한글 AND -검색 (-키워드 OR 라이믹스)');
|
||||
$args = array('s_content' => '"한글" AND -"검색" (-키워드 OR 라이믹스)');
|
||||
$sql = $query->getQueryString('rx_', $args);
|
||||
$params = $query->getQueryParams();
|
||||
$this->assertEquals('SELECT * FROM `rx_documents` AS `documents` WHERE (`content` LIKE ? AND `content` NOT LIKE ? AND (`content` NOT LIKE ? OR `content` LIKE ?))', $sql);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue