aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Wallabag')
-rw-r--r--tests/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilderTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilderTest.php b/tests/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilderTest.php
index 44affde8..9e0a9136 100644
--- a/tests/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilderTest.php
+++ b/tests/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilderTest.php
@@ -12,6 +12,8 @@ use Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder;
12 12
13class GrabySiteConfigBuilderTest extends WallabagCoreTestCase 13class GrabySiteConfigBuilderTest extends WallabagCoreTestCase
14{ 14{
15 private $builder;
16
15 public function testBuildConfigExists() 17 public function testBuildConfigExists()
16 { 18 {
17 $grabyConfigBuilderMock = $this->getMockBuilder('Graby\SiteConfig\ConfigBuilder') 19 $grabyConfigBuilderMock = $this->getMockBuilder('Graby\SiteConfig\ConfigBuilder')
@@ -157,8 +159,8 @@ class GrabySiteConfigBuilderTest extends WallabagCoreTestCase
157 ->disableOriginalConstructor() 159 ->disableOriginalConstructor()
158 ->getMock(); 160 ->getMock();
159 $siteCrentialRepo->expects($this->once()) 161 $siteCrentialRepo->expects($this->once())
160 ->method('findOneByHostAndUser') 162 ->method('findOneByHostsAndUser')
161 ->with('example.com', 1) 163 ->with(['example.com', '.com'], 1)
162 ->willReturn(['username' => 'foo', 'password' => 'bar']); 164 ->willReturn(['username' => 'foo', 'password' => 'bar']);
163 165
164 $user = $this->getMockBuilder('Wallabag\UserBundle\Entity\User') 166 $user = $this->getMockBuilder('Wallabag\UserBundle\Entity\User')