/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void */ protected function setUp() { $this->datatype = DatatypeModel::fromArray(array('name' => 'DatatypeCollectionTest', 'prevalue_value' => '', 'model' => 'DatatypeCollectionTest')); $this->datatype->save(); $this->object = new Collection(); }