diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-04-09 18:23:00 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-04-09 18:23:19 +0200 |
commit | 2d17054d766746456faf769c920c8674b5afc4e5 (patch) | |
tree | 47f729c3510d771a16d08c0fccaa4e75625e189a /tests/unit/service | |
parent | 78fee82a8447855ba549f4a0e52ddf0a1f1ab2be (diff) |
add last modified fields for feed and folder and move etag and lastmodified to http_etag and http_last_modified columns
Diffstat (limited to 'tests/unit/service')
-rw-r--r-- | tests/unit/service/FeedServiceTest.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/unit/service/FeedServiceTest.php b/tests/unit/service/FeedServiceTest.php index a6cee6159..efd7e5f33 100644 --- a/tests/unit/service/FeedServiceTest.php +++ b/tests/unit/service/FeedServiceTest.php @@ -252,8 +252,8 @@ class FeedServiceTest extends \PHPUnit_Framework_TestCase { $feed->setLink('http://test'); $feed->setUrl('http://test'); $feed->setUrlHash('yo'); - $feed->setLastModified(3); - $feed->setEtag(4); + $feed->setHttpLastModified(3); + $feed->setHttpEtag(4); $item = new Item(); $item->setGuidHash(md5('hi')); @@ -313,8 +313,8 @@ class FeedServiceTest extends \PHPUnit_Framework_TestCase { $feed->setLink('http://test'); $feed->setUrl('http://test'); $feed->setUrlHash('yo'); - $feed->setLastModified(3); - $feed->setEtag(4); + $feed->setHttpLastModified(3); + $feed->setHttpEtag(4); $item = new Item(); $item->setGuidHash(md5('hi')); @@ -374,8 +374,8 @@ class FeedServiceTest extends \PHPUnit_Framework_TestCase { $feed->setLink('http://test'); $feed->setUrl('http://test'); $feed->setUrlHash('yo'); - $feed->setLastModified(3); - $feed->setEtag(4); + $feed->setHttpLastModified(3); + $feed->setHttpEtag(4); return $feed; } @@ -574,8 +574,8 @@ class FeedServiceTest extends \PHPUnit_Framework_TestCase { $feed = new Feed(); $feed->setId(3); $feed->setUrl('https://goo.com'); - $feed->setEtag('abc'); - $feed->setLastModified(123); + $feed->setHttpEtag('abc'); + $feed->setHttpLastModified(123); $feed->setFullTextEnabled(true); $ex = new DoesNotExistException(''); @@ -590,8 +590,8 @@ class FeedServiceTest extends \PHPUnit_Framework_TestCase { ->method('fetch') ->with($this->equalTo($feed->getUrl()), $this->equalTo(false), - $this->equalTo($feed->getLastModified()), - $this->equalTo($feed->getEtag()), + $this->equalTo($feed->getHttpLastModified()), + $this->equalTo($feed->getHttpEtag()), $this->equalTo($feed->getFullTextEnabled())) ->will($this->throwException($ex)); @@ -997,8 +997,8 @@ class FeedServiceTest extends \PHPUnit_Framework_TestCase { public function testPatchEnableFullText() { $feed = Feed::fromRow([ 'id' => 3, - 'etag' => 'a', - 'last_modified' => 1, + 'http_etag' => 'a', + 'http_last_modified' => 1, 'full_text_enabled' => false ]); $feed2 = Feed::fromRow(['id' => 3]); @@ -1009,8 +1009,8 @@ class FeedServiceTest extends \PHPUnit_Framework_TestCase { ->will($this->returnValue($feed)); $feed2->setFullTextEnabled(true); - $feed2->setEtag(''); - $feed2->setLastModified(0); + $feed2->setHttpEtag(''); + $feed2->setHttpLastModified(0); $this->feedMapper->expects($this->at(1)) ->method('update') ->with($this->equalTo($feed2)); |