/** * Tests a successful set() call. * * @covers ::set */ public function testSet() { $this->lock->expects($this->once())->method('acquire')->with('1:test')->will($this->returnValue(TRUE)); $this->lock->expects($this->never())->method('wait'); $this->lock->expects($this->once())->method('release')->with('1:test'); $this->keyValue->expects($this->once())->method('setWithExpire')->with('1:test', $this->ownObject, 604800); $this->tempStore->set('test', 'test_data'); }
/** * {@inheritdoc} */ public function executeMultiple(array $entities) { $this->tempStore->set($this->user->id(), $entities); }