/** * @covers Foote\Ginny\Map\BaseBundle::update */ public function testupdate() { $field = new BaseField('name'); $field->type = 'integer'; $field->size = 1; $model = new BaseModel('Thing'); $model->addField($field); $bundle = new BaseBundle('Bundle'); $bundle->addModel($model); $bundle->update(); //ensure $field->update() was invoked by $bundle->update() $this->assertEquals('boolean', $field->type); }