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