You are here

function CoderReviewSQLTest::testSQLBracketNode in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_review/tests/coder_review_sql.test \CoderReviewSQLTest::testSQLBracketNode()

Tests functionality to detect SQL brackets exist around table names.

File

coder_review/tests/coder_review_sql.test, line 51

Class

CoderReviewSQLTest
Tests the Coder_review dectection functionality related to SQL.

Code

function testSQLBracketNode() {
  $this
    ->assertCoderReviewFail('  $sql = "INSERT INTO node (changed) VALUES (1)";');
  $this
    ->assertCoderReviewPass('  $sql = "INSERT INTO {node} (changed) VALUES (1)";');
}