Extends
lithium\test\Unit
Tests Collection accessors (getters/setters).
Source
public function testAccessorMethods() {
Connections::config(array('mock-source' => array(
'type' => 'lithium\tests\mocks\data\MockSource'
)));
$model = $this->_model;
$model::config(array('connection' => false, 'key' => 'id'));
$collection = new DocumentSet(compact('model'));
$this->assertEqual($model, $collection->model());
$this->assertEqual(compact('model'), $collection->meta());
}