You are here

public function MergeOperationTest::testGetResultFromSingleDomain in Plug 7

File

lib/Symfony/translation/Tests/Catalogue/MergeOperationTest.php, line 43

Class

MergeOperationTest

Namespace

Symfony\Component\Translation\Tests\Catalogue

Code

public function testGetResultFromSingleDomain() {
  $this
    ->assertEquals(new MessageCatalogue('en', array(
    'messages' => array(
      'a' => 'old_a',
      'b' => 'old_b',
      'c' => 'new_c',
    ),
  )), $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',
    ),
  )))
    ->getResult());
}