You are here

function CoderReviewSQLTest::testSQLLimit in Coder 7.2

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

Tests functionality to detect correct use of SQL LIMIT statement.

File

coder_review/tests/coder_review_sql.test, line 59

Class

CoderReviewSQLTest
Tests the Coder_review dectection functionality related to SQL.

Code

function testSQLLimit() {
  $this
    ->assertCoderReviewFail('  $sql = "SELECT * FROM {node} LIMIT 10";');
}