lithium\tests\cases\data\CollectionTest::testAccessorMethods PHP Метод

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

Tests Collection accessors (getters/setters).
public testAccessorMethods ( )
    public function testAccessorMethods()
    {
        $model = $this->_model;
        $model::config(array('meta' => array('connection' => false, 'key' => 'id')));
        $collection = new MockCollection(compact('model'));
        $this->assertEqual($model, $collection->model());
        $this->assertEqual(compact('model'), $collection->meta());
    }