]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
CS
authorJeremy Benoist <jeremy.benoist@gmail.com>
Mon, 26 Nov 2018 21:46:44 +0000 (22:46 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Wed, 28 Nov 2018 21:04:55 +0000 (22:04 +0100)
src/Wallabag/CoreBundle/DataFixtures/SettingFixtures.php
src/Wallabag/CoreBundle/DataFixtures/TagFixtures.php
tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php
tests/Wallabag/ApiBundle/WallabagApiTestCase.php

index fd12982989a3bcbf6dc7568c3cbecd96366bda86..cc7d1f59dc6f5e3e3a192559efdd959816772562 100644 (file)
@@ -4,7 +4,6 @@ namespace Wallabag\CoreBundle\DataFixtures;
 
 use Craue\ConfigBundle\Entity\Setting;
 use Doctrine\Bundle\FixturesBundle\Fixture;
-use Doctrine\Common\DataFixtures\DependentFixtureInterface;
 use Doctrine\Common\Persistence\ObjectManager;
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
 use Symfony\Component\DependencyInjection\ContainerInterface;
index 803ad7789ea0fec565e2f96ddcfe77cda971b859..d78dd0b82481dbf9d28899f4d78f02ed8b7731f7 100644 (file)
@@ -3,7 +3,6 @@
 namespace Wallabag\CoreBundle\DataFixtures;
 
 use Doctrine\Bundle\FixturesBundle\Fixture;
-use Doctrine\Common\DataFixtures\DependentFixtureInterface;
 use Doctrine\Common\Persistence\ObjectManager;
 use Wallabag\CoreBundle\Entity\Tag;
 
index 176da3cd8b7192eb8b146953a79fc23fdc99afa5..3696f8f90865805d08d84ff22da2e0940566c967 100644 (file)
@@ -940,7 +940,7 @@ class EntryRestControllerTest extends WallabagApiTestCase
 
         $content = json_decode($this->client->getResponse()->getContent(), true);
 
-        $this->assertSame(true, $content['exists']);
+        $this->assertTrue($content['exists']);
     }
 
     public function testGetEntriesExistsWithManyUrls()
index a0f2f889513e6f58a481ce01935db65ed11d2118..fd2e113e1a3996209b51769ba19faab9e57415f9 100644 (file)
@@ -54,11 +54,11 @@ abstract class WallabagApiTestCase extends WebTestCase
      * Used because on heavy testing we don't want to re-create the database on each run.
      * Which means "admin" user won't have id 1 all the time.
      *
-     * @param  string $username
+     * @param string $username
      *
      * @return int
      */
-    public function getUserId($username = 'admin')
+    protected function getUserId($username = 'admin')
     {
         return $this->client
             ->getContainer()