Beispiel #1
0
 public function testgetSearchQueryChangeSelect()
 {
     $data = array();
     $selectStmt = 'c.id, CONCAT(c.first_name, c.last_name) as full_name';
     $clientService = new \Box\Mod\Client\Service();
     $result = $clientService->getSearchQuery($data, $selectStmt);
     $this->assertInternalType('string', $result[0]);
     $this->assertInternalType('array', $result[1]);
     $this->assertTrue(strpos($result[0], $selectStmt) !== false, $result[0]);
 }