mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-15 21:41:06 +00:00
Fix test
This commit is contained in:
parent
d3262da307
commit
f061581bbd
1 changed files with 2 additions and 2 deletions
|
@ -1459,7 +1459,7 @@ class EntryControllerTest extends WallabagCoreTestCase
|
||||||
*/
|
*/
|
||||||
public function testRestrictedArticle()
|
public function testRestrictedArticle()
|
||||||
{
|
{
|
||||||
$url = 'https://www.monde-diplomatique.fr/2017/05/BONNET/57475';
|
$url = 'https://www.monde-diplomatique.fr/2017/05/BONNET/57476';
|
||||||
$this->logInAs('admin');
|
$this->logInAs('admin');
|
||||||
$client = $this->getClient();
|
$client = $this->getClient();
|
||||||
$em = $client->getContainer()->get('doctrine.orm.entity_manager');
|
$em = $client->getContainer()->get('doctrine.orm.entity_manager');
|
||||||
|
@ -1501,7 +1501,7 @@ class EntryControllerTest extends WallabagCoreTestCase
|
||||||
->findByUrlAndUserId($url, $this->getLoggedInUserId());
|
->findByUrlAndUserId($url, $this->getLoggedInUserId());
|
||||||
|
|
||||||
$this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content);
|
$this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content);
|
||||||
$this->assertSame('Crimes et réformes aux Philippines', $content->getTitle());
|
$this->assertSame('Quand Manille manœuvre', $content->getTitle());
|
||||||
|
|
||||||
$client->getContainer()->get('craue_config')->set('restricted_access', 0);
|
$client->getContainer()->get('craue_config')->set('restricted_access', 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue