function CoderSQLTest::testSQLLowerCaseKeywords in Coder 6
Same name and namespace in other branches
- 6.2 tests/coder_sql.test \CoderSQLTest::testSQLLowerCaseKeywords()
File
- tests/
coder_sql.test, line 17
Class
Code
function testSQLLowerCaseKeywords() {
$this
->assertCoderFail(' $sql = "select * from {node}";');
$this
->assertCoderFail(' $sql = "insert into {node} (changed) VALUES (%d)";');
$this
->assertCoderFail(' $sql = "delete from {node}";');
$this
->assertCoderFail(' $sql = "update {node} set changed = now()";');
$this
->assertCoderFail(' $var = t("select something from this");');
$this
->assertCoderPass(' $var = t("update something");');
$this
->assertCoderPass(' $var = t("insert something");');
$this
->assertCoderPass(' $var = t("delete something");');
}