lithium\tests\cases\g11n\catalog\AdapterTest::testMergeIds PHP Метод

testMergeIds() публичный Метод

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