diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-02-04 15:59:57 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-02-04 15:59:57 +0100 |
commit | e008c037f53324b931f027483f9f1053171109c5 (patch) | |
tree | 441c54eb946ffb53a161cad8f686ce7aff875abd /src/Wallabag/ImportBundle/Tests | |
parent | 74f39b0952440fa0c55e5e8a2e1a8d2bbd3acfd7 (diff) | |
parent | 79b9e49d9464e9a67f6ee66fbf6f6c541b1a29f4 (diff) | |
download | wallabag-e008c037f53324b931f027483f9f1053171109c5.tar.gz wallabag-e008c037f53324b931f027483f9f1053171109c5.tar.zst wallabag-e008c037f53324b931f027483f9f1053171109c5.zip |
Merge pull request #1612 from wallabag/v2-settings-page
Settings page
Diffstat (limited to 'src/Wallabag/ImportBundle/Tests')
-rw-r--r-- | src/Wallabag/ImportBundle/Tests/Import/PocketImportTest.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Wallabag/ImportBundle/Tests/Import/PocketImportTest.php b/src/Wallabag/ImportBundle/Tests/Import/PocketImportTest.php index 76225fe4..25359d56 100644 --- a/src/Wallabag/ImportBundle/Tests/Import/PocketImportTest.php +++ b/src/Wallabag/ImportBundle/Tests/Import/PocketImportTest.php | |||
@@ -55,11 +55,20 @@ class PocketImportTest extends \PHPUnit_Framework_TestCase | |||
55 | ->disableOriginalConstructor() | 55 | ->disableOriginalConstructor() |
56 | ->getMock(); | 56 | ->getMock(); |
57 | 57 | ||
58 | $config = $this->getMockBuilder('Craue\ConfigBundle\Util\Config') | ||
59 | ->disableOriginalConstructor() | ||
60 | ->getMock(); | ||
61 | |||
62 | $config->expects($this->any()) | ||
63 | ->method('get') | ||
64 | ->with('pocket_consumer_key') | ||
65 | ->willReturn($consumerKey); | ||
66 | |||
58 | $pocket = new PocketImportMock( | 67 | $pocket = new PocketImportMock( |
59 | $this->tokenStorage, | 68 | $this->tokenStorage, |
60 | $this->em, | 69 | $this->em, |
61 | $this->contentProxy, | 70 | $this->contentProxy, |
62 | $consumerKey | 71 | $config |
63 | ); | 72 | ); |
64 | 73 | ||
65 | $this->logHandler = new TestHandler(); | 74 | $this->logHandler = new TestHandler(); |