You are here

function CoderReviewSQLTest::testSelectCOUNT in Coder 7.2

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

Tests functionality to detect correct use of SQL COUNT statement.

File

coder_review/tests/coder_review_sql.test, line 66

Class

CoderReviewSQLTest
Tests the Coder_review dectection functionality related to SQL.

Code

function testSelectCOUNT() {
  $this
    ->assertCoderReviewFail("  db_query('SELECT COUNT(*) FROM {users}')");
}