mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-11 17:51:02 +00:00
Use test container to replace test services definitions
This commit is contained in:
parent
742742f67d
commit
a221ec8348
7 changed files with 16 additions and 32 deletions
|
@ -1313,7 +1313,8 @@ class ConfigControllerTest extends WallabagTestCase
|
|||
$client->submit($form, $data);
|
||||
$this->assertSame(302, $client->getResponse()->getStatusCode());
|
||||
|
||||
$user = $client->getContainer()->get('fos_user.user_manager.test')->findUserBy(['username' => 'admin']);
|
||||
$user = static::getContainer()->get('fos_user.user_manager')->findUserBy(['username' => 'admin']);
|
||||
\assert($user instanceof User);
|
||||
$taggingRules = $user->getConfig()->getTaggingRules()->toArray();
|
||||
$this->assertCount(5, $taggingRules);
|
||||
$this->assertSame('title matches "football"', $taggingRules[4]->getRule());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue