diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-05-15 14:58:40 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-05-15 14:58:40 +0200 |
commit | b8b37ccdea6b453aa228cb79755752b5738b98b9 (patch) | |
tree | 6aabc23c434ced71a0d8b46a5ad3e30e4e59ec0a /tests | |
parent | 9f0957b831622ee577fa7d8f92ec0df6f3a8e274 (diff) | |
download | wallabag-b8b37ccdea6b453aa228cb79755752b5738b98b9.tar.gz wallabag-b8b37ccdea6b453aa228cb79755752b5738b98b9.tar.zst wallabag-b8b37ccdea6b453aa228cb79755752b5738b98b9.zip |
CS
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilderTest.php | 6 |
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 | ||
13 | class GrabySiteConfigBuilderTest extends WallabagCoreTestCase | 13 | class 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') |