summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Green2008-09-27 16:59:57 (GMT)
committer Doug Green2008-09-27 16:59:57 (GMT)
commit6714d5ebcdc25bae67b57ed82cb05cc1d4577dae (patch)
tree3290282f5540d45e4fe3c0201bf26ebaf8be4674
parentfbd308a966d8f1657ec94b241cdb96e0e9784d67 (diff)
restore the update_sql test
-rw-r--r--tests/coder_security.test3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/coder_security.test b/tests/coder_security.test
index 11a3764..fa5e793 100644
--- a/tests/coder_security.test
+++ b/tests/coder_security.test
@@ -34,8 +34,7 @@ class CoderSecurityTest extends CoderTestCase {
$this->assertCoderFail(' $results = db_query("SELECT * FROM {foo} WHERE name=$name");');
$this->assertCoderFail(' db_query("INSERT INTO {foo} SET name=\'$name\'");');
$this->assertCoderFail(' $sql = "INSERT INTO {foo} SET name=\'$name\'";');
- // @NOTE: this rule passes if run from the .install file, but we can't test for that.
-// $this->assertCoderPass(' update_sql("INSERT INTO {foo} SET name=\'$name\'");');
+ $this->assertCoderPass(' update_sql("INSERT INTO {foo} SET name=\'$name\'");');
$this->assertCoderPass(' db_result(db_query("SELECT filename FROM {system} WHERE name = \'%s\'", "ad_$detail->adtype"));');
}