public function test_deleteAll_ShouldRemoveTheEntireEntry() { $this->storage->setValue($this->setting, 'myRandomVal'); $this->storage->save(); $this->storage->deleteAllValues(); $this->assertFalse($this->getValueFromOptionTable()); }
public function setValue(Setting $setting, $value) { $this->toBeDeleted[$setting->getName()] = false; // prevent from deleting this setting, we will create/update it parent::setValue($setting, $value); }