public function MergeOperationTest::testGetMessagesFromSingleDomain in Plug 7
File
- lib/
Symfony/ translation/ Tests/ Catalogue/ MergeOperationTest.php, line 20
Class
Namespace
Symfony\Component\Translation\Tests\CatalogueCode
public function testGetMessagesFromSingleDomain() {
$operation = $this
->createOperation(new MessageCatalogue('en', array(
'messages' => array(
'a' => 'old_a',
'b' => 'old_b',
),
)), new MessageCatalogue('en', array(
'messages' => array(
'a' => 'new_a',
'c' => 'new_c',
),
)));
$this
->assertEquals(array(
'a' => 'old_a',
'b' => 'old_b',
'c' => 'new_c',
), $operation
->getMessages('messages'));
$this
->assertEquals(array(
'c' => 'new_c',
), $operation
->getNewMessages('messages'));
$this
->assertEquals(array(), $operation
->getObsoleteMessages('messages'));
}