This commit is contained in:
Jeremy Benoist 2021-02-08 09:38:01 +01:00
parent d3262da307
commit f061581bbd
No known key found for this signature in database
GPG Key ID: BCA73962457ACC3C
1 changed files with 2 additions and 2 deletions

View File

@ -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);
} }