Skip to content

Commit

Permalink
Add more thorough test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed May 22, 2017
1 parent 37b0c11 commit 3c91a8b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/TestCase/I18n/Parser/PoFileParserTest.php
Expand Up @@ -125,7 +125,14 @@ public function testParseContextOnSomeMessages()

return $package;
});
$this->assertTextEquals('En cours', $messages['Pending']['_context']['']);
$this->assertTextEquals('En resolved', $messages['Resolved']['_context']['']);
$this->assertSame('En cours', $messages['Pending']['_context']['']);
$this->assertSame('En cours - context', $messages['Pending']['_context']['Pay status']);
$this->assertSame('En resolved', $messages['Resolved']['_context']['']);
$this->assertSame('En resolved - context', $messages['Resolved']['_context']['Pay status']);

$this->assertSame('En cours', __('Pending'));
$this->assertSame('En cours - context', __x('Pay status', 'Pending'));
$this->assertSame('En resolved', __('Resolved'));
$this->assertSame('En resolved - context', __x('Pay status', 'Resolved'));
}
}

0 comments on commit 3c91a8b

Please sign in to comment.