You are here

function CoderReviewUpgrade6xTest::testUpgrade6xWatdog in Coder 7

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

File

coder_review/tests/coder_review_6x.test, line 166

Class

CoderReviewUpgrade6xTest

Code

function testUpgrade6xWatdog() {
  $this
    ->assertCoderReviewFail('  watchdog(\'debug\', \'My debug message.\');');
  $this
    ->assertCoderReviewFail('  watchdog(\'user\', t(\'Removed user.\'));');
  $this
    ->assertCoderReviewFail('  watchdog(\'user\', t(\'Removed %username user.\', array(\'%username\' => $user->name)));');
  $this
    ->assertCoderReviewPass('  watchdog(\'user\', \'Removed %username user.\', array(\'%username\' => $user->name));');
}