public function testUpdatePassesFullText() { $feed = new Feed(); $feed->setId(3); $feed->setUrl('https://goo.com'); $feed->setEtag('abc'); $feed->setLastModified(123); $feed->setFullTextEnabled(true); $ex = new DoesNotExistException(''); $this->feedMapper->expects($this->at(0))->method('find')->with($this->equalTo($feed->getId()), $this->equalTo($this->user))->will($this->returnValue($feed)); $this->fetcher->expects($this->once())->method('fetch')->with($this->equalTo($feed->getUrl()), $this->equalTo(false), $this->equalTo($feed->getLastModified()), $this->equalTo($feed->getEtag()), $this->equalTo($feed->getFullTextEnabled()))->will($this->throwException($ex)); $this->setExpectedException('OCP\\AppFramework\\Db\\DoesNotExistException'); $this->feedService->update($feed->getId(), $this->user); }