public function testSetNoCache() { $requests = ['randomrecommendation', 'randomsimilar', 'mylistsummary']; foreach ($requests as $request) { $this->cache->set($request, 'foo', 'bar'); $this->assertFalse($this->fs->exists($this->filename)); } }
public function testExistsNot() { $statement = $this->createDbalStatementMock(); $statement->expects($this->once())->method('rowCount')->will($this->returnValue(0)); $this->dbalMock->expects($this->once())->method('prepare')->with($this->anything())->will($this->returnValue($statement)); self::assertFalse($this->handler->exists('prefix/my/file.png')); }
public function testExistsNot() { $this->filesystem->expects($this->once())->method('has')->with('prefix/my/file.png')->will($this->returnValue(false)); self::assertFalse($this->handler->exists('prefix/my/file.png')); }