public function setProperties(array $properties) { $array = array(); foreach ($properties as $property) { $array[] = Model::fromArray($property); } $this->setData('properties', $array); return $this; }
/** * Test * * @return void */ public function testDelete() { $this->object->setProperties(array($this->property->getData())); $this->assertTrue($this->object->delete()); }