lithium\tests\cases\data\collection\DocumentSetTest::testAddValueAndExport PHP Method

testAddValueAndExport() public method

    public function testAddValueAndExport()
    {
        $array = new DocumentSet(array('model' => $this->_model, 'pathKey' => 'foo', 'data' => array('bar')));
        $array[] = 'baz';
        $expected = array('bar', 'baz');
        $result = $array->data();
        $this->assertEqual($expected, $result);
    }