mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
CS
This commit is contained in:
parent
9f0957b831
commit
b8b37ccdea
1 changed files with 4 additions and 2 deletions
|
@ -12,6 +12,8 @@ use Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder;
|
||||||
|
|
||||||
class GrabySiteConfigBuilderTest extends WallabagCoreTestCase
|
class GrabySiteConfigBuilderTest extends WallabagCoreTestCase
|
||||||
{
|
{
|
||||||
|
private $builder;
|
||||||
|
|
||||||
public function testBuildConfigExists()
|
public function testBuildConfigExists()
|
||||||
{
|
{
|
||||||
$grabyConfigBuilderMock = $this->getMockBuilder('Graby\SiteConfig\ConfigBuilder')
|
$grabyConfigBuilderMock = $this->getMockBuilder('Graby\SiteConfig\ConfigBuilder')
|
||||||
|
@ -157,8 +159,8 @@ class GrabySiteConfigBuilderTest extends WallabagCoreTestCase
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
$siteCrentialRepo->expects($this->once())
|
$siteCrentialRepo->expects($this->once())
|
||||||
->method('findOneByHostAndUser')
|
->method('findOneByHostsAndUser')
|
||||||
->with('example.com', 1)
|
->with(['example.com', '.com'], 1)
|
||||||
->willReturn(['username' => 'foo', 'password' => 'bar']);
|
->willReturn(['username' => 'foo', 'password' => 'bar']);
|
||||||
|
|
||||||
$user = $this->getMockBuilder('Wallabag\UserBundle\Entity\User')
|
$user = $this->getMockBuilder('Wallabag\UserBundle\Entity\User')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue