mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Retrieve all items from Pocket
5000 by 5000. Also, retrieve newest item first.
This commit is contained in:
parent
c98db1b653
commit
02f6489572
2 changed files with 32 additions and 15 deletions
|
@ -12,14 +12,6 @@ use GuzzleHttp\Stream\Stream;
|
|||
use Monolog\Logger;
|
||||
use Monolog\Handler\TestHandler;
|
||||
|
||||
class PocketImportMock extends PocketImport
|
||||
{
|
||||
public function getAccessToken()
|
||||
{
|
||||
return $this->accessToken;
|
||||
}
|
||||
}
|
||||
|
||||
class PocketImportTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
protected $token;
|
||||
|
@ -49,7 +41,7 @@ class PocketImportTest extends \PHPUnit_Framework_TestCase
|
|||
->with('pocket_consumer_key')
|
||||
->willReturn($consumerKey);
|
||||
|
||||
$pocket = new PocketImportMock(
|
||||
$pocket = new PocketImport(
|
||||
$this->em,
|
||||
$this->contentProxy,
|
||||
$config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue