lithium\tests\cases\g11n\catalog\AdapterTest::testMergeComments PHP Method

testMergeComments() public method

public testMergeComments ( )
    public function testMergeComments()
    {
        $item = array('id' => 'test', 'comments' => array('a'));
        $data = $this->adapter->merge(array(), $item);
        $item = array('id' => 'test', 'comments' => array('b'));
        $expected = array('test' => array('id' => 'test', 'ids' => array(), 'translated' => null, 'flags' => array(), 'comments' => array('a', 'b'), 'occurrences' => array()));
        $result = $this->adapter->merge($data, $item);
        $this->assertEqual($expected, $result);
    }