public function tearDown() { if ($this->object_mono instanceof databox_field) { $this->object_mono->delete(); } if ($this->object_multi instanceof databox_field) { $this->object_multi->delete(); } $extra = $this->databox->get_meta_structure()->get_element_by_name('Bonoboyoyo'); if ($extra instanceof databox_field) { $extra->delete(); } parent::tearDown(); }