$this->assertLike($this->strWrangle($queryString), $this->strWrangle($sql[$index]));
}
if (!empty($dataSet['where_contains'])) {
- $this->assertContains($this->strWrangle(str_replace('@tagid', $tag['id'], $dataSet['where_contains'])), $this->strWrangle($sql[2]));
+ $this->assertStringContainsString($this->strWrangle(str_replace('@tagid', $tag['id'], $dataSet['where_contains'])), $this->strWrangle($sql[2]));
}
// Ensure that search builder return individual contact as per criteria
if ($dataSet['context'] === 'builder') {
//Check if email column contains (On Hold) string.
foreach ($rows[$contactID] as $key => $value) {
if (strpos($key, 'email') !== FALSE) {
- $this->assertContains("(On Hold)", (string) $value);
+ $this->assertStringContainsString("(On Hold)", (string) $value);
}
}
}
FALSE, FALSE
);
//Check if custom table is included in $query->_tables.
- $this->assertTrue(in_array($cgTableName, array_keys($query->_tables)));
+ $this->assertTrue(array_key_exists($cgTableName, $query->_tables));
//Assert if from clause joins the custom table.
$this->assertTrue(strpos($query->_fromClause, $cgTableName) !== FALSE);
$this->callAPISuccess('CustomField', 'delete', ['id' => $customField['id']]);