diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2018-11-26 22:46:44 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2018-11-28 22:04:55 +0100 |
commit | b13b2ef052f3c21f17ab2a4f3f410049e3c79c83 (patch) | |
tree | 2f8084c1e98ecfc16698c66cd3846c543d391aeb | |
parent | 8f2038e5b15c2d7342ed18381531e5eb95e86d46 (diff) | |
download | wallabag-b13b2ef052f3c21f17ab2a4f3f410049e3c79c83.tar.gz wallabag-b13b2ef052f3c21f17ab2a4f3f410049e3c79c83.tar.zst wallabag-b13b2ef052f3c21f17ab2a4f3f410049e3c79c83.zip |
CS
4 files changed, 3 insertions, 5 deletions
diff --git a/src/Wallabag/CoreBundle/DataFixtures/SettingFixtures.php b/src/Wallabag/CoreBundle/DataFixtures/SettingFixtures.php index fd129829..cc7d1f59 100644 --- a/src/Wallabag/CoreBundle/DataFixtures/SettingFixtures.php +++ b/src/Wallabag/CoreBundle/DataFixtures/SettingFixtures.php | |||
@@ -4,7 +4,6 @@ namespace Wallabag\CoreBundle\DataFixtures; | |||
4 | 4 | ||
5 | use Craue\ConfigBundle\Entity\Setting; | 5 | use Craue\ConfigBundle\Entity\Setting; |
6 | use Doctrine\Bundle\FixturesBundle\Fixture; | 6 | use Doctrine\Bundle\FixturesBundle\Fixture; |
7 | use Doctrine\Common\DataFixtures\DependentFixtureInterface; | ||
8 | use Doctrine\Common\Persistence\ObjectManager; | 7 | use Doctrine\Common\Persistence\ObjectManager; |
9 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; | 8 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
10 | use Symfony\Component\DependencyInjection\ContainerInterface; | 9 | use Symfony\Component\DependencyInjection\ContainerInterface; |
diff --git a/src/Wallabag/CoreBundle/DataFixtures/TagFixtures.php b/src/Wallabag/CoreBundle/DataFixtures/TagFixtures.php index 803ad778..d78dd0b8 100644 --- a/src/Wallabag/CoreBundle/DataFixtures/TagFixtures.php +++ b/src/Wallabag/CoreBundle/DataFixtures/TagFixtures.php | |||
@@ -3,7 +3,6 @@ | |||
3 | namespace Wallabag\CoreBundle\DataFixtures; | 3 | namespace Wallabag\CoreBundle\DataFixtures; |
4 | 4 | ||
5 | use Doctrine\Bundle\FixturesBundle\Fixture; | 5 | use Doctrine\Bundle\FixturesBundle\Fixture; |
6 | use Doctrine\Common\DataFixtures\DependentFixtureInterface; | ||
7 | use Doctrine\Common\Persistence\ObjectManager; | 6 | use Doctrine\Common\Persistence\ObjectManager; |
8 | use Wallabag\CoreBundle\Entity\Tag; | 7 | use Wallabag\CoreBundle\Entity\Tag; |
9 | 8 | ||
diff --git a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php index 176da3cd..3696f8f9 100644 --- a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php +++ b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | |||
@@ -940,7 +940,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
940 | 940 | ||
941 | $content = json_decode($this->client->getResponse()->getContent(), true); | 941 | $content = json_decode($this->client->getResponse()->getContent(), true); |
942 | 942 | ||
943 | $this->assertSame(true, $content['exists']); | 943 | $this->assertTrue($content['exists']); |
944 | } | 944 | } |
945 | 945 | ||
946 | public function testGetEntriesExistsWithManyUrls() | 946 | public function testGetEntriesExistsWithManyUrls() |
diff --git a/tests/Wallabag/ApiBundle/WallabagApiTestCase.php b/tests/Wallabag/ApiBundle/WallabagApiTestCase.php index a0f2f889..fd2e113e 100644 --- a/tests/Wallabag/ApiBundle/WallabagApiTestCase.php +++ b/tests/Wallabag/ApiBundle/WallabagApiTestCase.php | |||
@@ -54,11 +54,11 @@ abstract class WallabagApiTestCase extends WebTestCase | |||
54 | * Used because on heavy testing we don't want to re-create the database on each run. | 54 | * Used because on heavy testing we don't want to re-create the database on each run. |
55 | * Which means "admin" user won't have id 1 all the time. | 55 | * Which means "admin" user won't have id 1 all the time. |
56 | * | 56 | * |
57 | * @param string $username | 57 | * @param string $username |
58 | * | 58 | * |
59 | * @return int | 59 | * @return int |
60 | */ | 60 | */ |
61 | public function getUserId($username = 'admin') | 61 | protected function getUserId($username = 'admin') |
62 | { | 62 | { |
63 | return $this->client | 63 | return $this->client |
64 | ->getContainer() | 64 | ->getContainer() |