commit bf88524624e5afd660241a0135a597fea81ce45b Author: jrcallicott Date: Wed Jul 3 15:02:54 2013 -0500 #42 fixed a couple tests diff --git a/core/modules/system/lib/Drupal/system/Tests/Theme/TwigTransFormatPluralTest.php b/core/modules/system/lib/Drupal/system/Tests/Theme/TwigTransFormatPluralTest.php index db1e6f5..bc75e32 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Theme/TwigTransFormatPluralTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Theme/TwigTransFormatPluralTest.php @@ -49,7 +49,6 @@ function testTransBlocks() { $this->drupalLogin($admin_user); // Enable lolspeak. - $lolspeak_langcode = 'xx-lolspeak'; $langcode = 'xx'; $name = 'Lolspeak'; $edit = array( @@ -78,24 +77,23 @@ function testTransBlocks() { $this->drupalGet('twig-theme-test/trans'); $this->assertText( - 'O HAI SUNZ', + 'OH HAI SUNZ', '"Hello sun." translation tag was successfully translated.' ); $this->assertText( - 'O HAI TEH MUUN', + 'OH HAI TEH MUUN', '"Hello moon." translation block was successfully translated.' ); - /* - @TODO fix these tests. + $this->assertText( - '"Hello star." translation block with variable was successfully translated.', - 'O HAI STARRRRR' + 'O HAI STARRRRR', + '"Hello star." translation block with variable was successfully translated.' ); $this->assertText( - '"Hello {{ count }} stars." translation block with variable was successfully translated.', - 'O HAI 2 STARZZZZ' + 'O HAI 2 STARZZZZ', + '"Hello {{ count }} stars." translation block with variable was successfully translated.' ); - */ + $this->assertText( 'O HAI THAR Earth', '"Hello {{ name }}." translation block with variable was successfully translated.'