You are here

function CoderReviewUpgrade6xTest::testUpgrade6xUserAuthenticate in Coder 7

Same name and namespace in other branches
  1. 7.2 coder_review/tests/coder_review_6x.test \CoderReviewUpgrade6xTest::testUpgrade6xUserAuthenticate()

File

coder_review/tests/coder_review_6x.test, line 181

Class

CoderReviewUpgrade6xTest

Code

function testUpgrade6xUserAuthenticate() {
  $this
    ->assertCoderReviewFail('  user_authenticate($name, $pass);');
  $this
    ->assertCoderReviewFail('  user_authenticate("name", \'pass\');');
  $this
    ->assertCoderReviewPass('  user_authenticate($array);');
  $this
    ->assertCoderReviewPass('  user_authenticate(array(\'name\' => $name, \'pass\' => $pass));');
}