mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Use FQCN as service name for Import services
This commit is contained in:
parent
4449265836
commit
a7addd3c13
15 changed files with 70 additions and 51 deletions
|
@ -3,6 +3,7 @@
|
|||
namespace Tests\Wallabag\ImportBundle\Controller;
|
||||
|
||||
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
|
||||
use Wallabag\ImportBundle\Import\PocketImport;
|
||||
|
||||
class PocketControllerTest extends WallabagCoreTestCase
|
||||
{
|
||||
|
@ -72,7 +73,7 @@ class PocketControllerTest extends WallabagCoreTestCase
|
|||
->method('getRequestToken')
|
||||
->willReturn('token');
|
||||
|
||||
static::$kernel->getContainer()->set('wallabag_import.pocket.import', $pocketImport);
|
||||
static::$kernel->getContainer()->set(PocketImport::class, $pocketImport);
|
||||
|
||||
$client->request('GET', '/import/pocket/auth');
|
||||
|
||||
|
@ -94,7 +95,7 @@ class PocketControllerTest extends WallabagCoreTestCase
|
|||
->method('authorize')
|
||||
->willReturn(false);
|
||||
|
||||
static::$kernel->getContainer()->set('wallabag_import.pocket.import', $pocketImport);
|
||||
static::$kernel->getContainer()->set(PocketImport::class, $pocketImport);
|
||||
|
||||
$client->request('GET', '/import/pocket/callback');
|
||||
|
||||
|
@ -128,7 +129,7 @@ class PocketControllerTest extends WallabagCoreTestCase
|
|||
->method('import')
|
||||
->willReturn(true);
|
||||
|
||||
static::$kernel->getContainer()->set('wallabag_import.pocket.import', $pocketImport);
|
||||
static::$kernel->getContainer()->set(PocketImport::class, $pocketImport);
|
||||
|
||||
$client->request('GET', '/import/pocket/callback');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue