public function testDropAll() { // create a flow $createLocationFlow = $this->getFlow($this->createLocationFlowName, $this->createLocationFlowInstanceId); // save its data $this->dataManager->save($createLocationFlow, $this->createLocationFlowData); // drop all data $this->dataManager->dropAll(); // ensure all data has been dropped $this->assertFalse($this->storage->has(DataManagerInterface::STORAGE_ROOT)); }
public function testRemove() { $this->assertNull($this->storage->remove('foo')); $this->storage->set('foo', 'bar'); $this->assertEquals('bar', $this->storage->remove('foo')); }
public function testRemove_empty() { $this->storage->remove('foo'); $this->assertFalse($this->storage->has('foo')); }
protected function saveStepData(array $data) { $this->storage->set($this->getStepDataKey(), $data); }
/** * {@inheritDoc} */ public function dropAll() { $this->storage->remove(DataManagerInterface::STORAGE_ROOT); }