You are here

function CoderSQLTest::testSQLNotEquals in Coder 6.2

File

tests/coder_sql.test, line 51

Class

CoderSQLTest

Code

function testSQLNotEquals() {
  $this
    ->assertCoderFail('  $sql = "SELECT * FROM {node} WHERE nid != 10";');
  $this
    ->assertCoderPass('  $sql = "SELECT * FROM {node} WHERE nid = 10";');
  $this
    ->assertCoderPass('  $sql = "SELECT * FROM {node} WHERE nid <> 10";');
}