mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Jump to Symfony 3.4
Thanks to the BC compatibility, almost nothing have to be changed. All changes are related to new bundle version of: - SensioFrameworkExtraBundle - DoctrineFixturesBundle
This commit is contained in:
parent
2b6380f5ac
commit
115de64e5b
34 changed files with 132 additions and 62 deletions
|
@ -26,7 +26,7 @@ class ReloadEntryCommandTest extends WallabagCoreTestCase
|
|||
{
|
||||
parent::setUp();
|
||||
|
||||
$userRepository = $this->getClient()->getContainer()->get('wallabag_user.user_repository');
|
||||
$userRepository = $this->getClient()->getContainer()->get('wallabag_user.user_repository.test');
|
||||
|
||||
$user = $userRepository->findOneByUserName('admin');
|
||||
$this->adminEntry = new Entry($user);
|
||||
|
@ -60,7 +60,7 @@ class ReloadEntryCommandTest extends WallabagCoreTestCase
|
|||
|
||||
$reloadedEntries = $this->getClient()
|
||||
->getContainer()
|
||||
->get('wallabag_core.entry_repository')
|
||||
->get('wallabag_core.entry_repository.test')
|
||||
->findById([$this->adminEntry->getId(), $this->bobEntry->getId()]);
|
||||
|
||||
foreach ($reloadedEntries as $reloadedEntry) {
|
||||
|
@ -84,7 +84,7 @@ class ReloadEntryCommandTest extends WallabagCoreTestCase
|
|||
'interactive' => false,
|
||||
]);
|
||||
|
||||
$entryRepository = $this->getClient()->getContainer()->get('wallabag_core.entry_repository');
|
||||
$entryRepository = $this->getClient()->getContainer()->get('wallabag_core.entry_repository.test');
|
||||
|
||||
$reloadedAdminEntry = $entryRepository->find($this->adminEntry->getId());
|
||||
$this->assertNotEmpty($reloadedAdminEntry->getContent());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue