You are here

function CoderUpgrade6xTest::testUpgrade6xFormatPlural in Coder 6.2

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

File

tests/coder_6x.test, line 162

Class

CoderUpgrade6xTest

Code

function testUpgrade6xFormatPlural() {
  $this
    ->assertCoderFail('  strtr(format_plural($num, \'1 %type post\', \'@count %type posts\'), array(\'%type\' => theme(\'placeholder\', $type)));');
  $this
    ->assertCoderPass('  format_plural($num, \'1 %type post\', \'@count %type posts\', array(\'%type\' => $type));');
}