You are here

function CoderUpgrade6xTest::testUpgrade6xWatdog in Coder 6

Same name and namespace in other branches
  1. 6.2 tests/coder_6x.test \CoderUpgrade6xTest::testUpgrade6xWatdog()

File

tests/coder_6x.test, line 160

Class

CoderUpgrade6xTest

Code

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