public function DiffOperationTest::testGetMessagesFromSingleDomain in Plug 7
File
- lib/
Symfony/ translation/ Tests/ Catalogue/ DiffOperationTest.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',
'c' => 'new_c',
), $operation
->getMessages('messages'));
$this
->assertEquals(array(
'c' => 'new_c',
), $operation
->getNewMessages('messages'));
$this
->assertEquals(array(
'b' => 'old_b',
), $operation
->getObsoleteMessages('messages'));
}