aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/ImportBundle
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-09-05 07:13:09 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-09-11 21:58:31 +0200
commit02f64895728fe9aee2c696a627e0bbe27a24faf2 (patch)
treeab4bd15600ff6010ed20dacaa1d06f7123b2f56b /tests/Wallabag/ImportBundle
parentc98db1b653b5dc8b701422190b02d9fbf10c4e68 (diff)
downloadwallabag-02f64895728fe9aee2c696a627e0bbe27a24faf2.tar.gz
wallabag-02f64895728fe9aee2c696a627e0bbe27a24faf2.tar.zst
wallabag-02f64895728fe9aee2c696a627e0bbe27a24faf2.zip
Retrieve all items from Pocket
5000 by 5000. Also, retrieve newest item first.
Diffstat (limited to 'tests/Wallabag/ImportBundle')
-rw-r--r--tests/Wallabag/ImportBundle/Import/PocketImportTest.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/Wallabag/ImportBundle/Import/PocketImportTest.php b/tests/Wallabag/ImportBundle/Import/PocketImportTest.php
index d6b9617e..26c6b825 100644
--- a/tests/Wallabag/ImportBundle/Import/PocketImportTest.php
+++ b/tests/Wallabag/ImportBundle/Import/PocketImportTest.php
@@ -12,14 +12,6 @@ use GuzzleHttp\Stream\Stream;
12use Monolog\Logger; 12use Monolog\Logger;
13use Monolog\Handler\TestHandler; 13use Monolog\Handler\TestHandler;
14 14
15class PocketImportMock extends PocketImport
16{
17 public function getAccessToken()
18 {
19 return $this->accessToken;
20 }
21}
22
23class PocketImportTest extends \PHPUnit_Framework_TestCase 15class PocketImportTest extends \PHPUnit_Framework_TestCase
24{ 16{
25 protected $token; 17 protected $token;
@@ -49,7 +41,7 @@ class PocketImportTest extends \PHPUnit_Framework_TestCase
49 ->with('pocket_consumer_key') 41 ->with('pocket_consumer_key')
50 ->willReturn($consumerKey); 42 ->willReturn($consumerKey);
51 43
52 $pocket = new PocketImportMock( 44 $pocket = new PocketImport(
53 $this->em, 45 $this->em,
54 $this->contentProxy, 46 $this->contentProxy,
55 $config 47 $config