/** * Tests the setIfNotExists() methods. * * @covers ::setIfNotExists() */ public function testSetIfNotExists() { $this->keyValue->expects($this->once())->method('setWithExpireIfNotExists')->with('test', $this->ownObject, 604800)->will($this->returnValue(TRUE)); $this->assertTrue($this->tempStore->setIfNotExists('test', 'test_data')); }