mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-22 09:01:01 +00:00
Rename WallabagCoreTestCase to WallabagTestCase
This commit is contained in:
parent
cd6f7b5e92
commit
c092e4ddf6
40 changed files with 79 additions and 79 deletions
|
@ -5,11 +5,11 @@ namespace Tests\Wallabag\Command;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
||||||
use Symfony\Component\Console\Tester\CommandTester;
|
use Symfony\Component\Console\Tester\CommandTester;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
use Wallabag\Entity\User;
|
use Wallabag\Entity\User;
|
||||||
|
|
||||||
class CleanDuplicatesCommandTest extends WallabagCoreTestCase
|
class CleanDuplicatesCommandTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testRunCleanDuplicates()
|
public function testRunCleanDuplicates()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,9 +5,9 @@ namespace Tests\Wallabag\Command;
|
||||||
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
||||||
use Symfony\Component\Console\Exception\RuntimeException;
|
use Symfony\Component\Console\Exception\RuntimeException;
|
||||||
use Symfony\Component\Console\Tester\CommandTester;
|
use Symfony\Component\Console\Tester\CommandTester;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
|
|
||||||
class ExportCommandTest extends WallabagCoreTestCase
|
class ExportCommandTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testExportCommandWithoutUsername()
|
public function testExportCommandWithoutUsername()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,11 +5,11 @@ namespace Tests\Wallabag\Command;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
||||||
use Symfony\Component\Console\Tester\CommandTester;
|
use Symfony\Component\Console\Tester\CommandTester;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
use Wallabag\Entity\User;
|
use Wallabag\Entity\User;
|
||||||
|
|
||||||
class GenerateUrlHashesCommandTest extends WallabagCoreTestCase
|
class GenerateUrlHashesCommandTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testRunGenerateUrlHashesCommand()
|
public function testRunGenerateUrlHashesCommand()
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,9 +7,9 @@ use Symfony\Bundle\FrameworkBundle\Console\Application;
|
||||||
use Symfony\Component\Config\Definition\Exception\Exception;
|
use Symfony\Component\Config\Definition\Exception\Exception;
|
||||||
use Symfony\Component\Console\Exception\RuntimeException;
|
use Symfony\Component\Console\Exception\RuntimeException;
|
||||||
use Symfony\Component\Console\Tester\CommandTester;
|
use Symfony\Component\Console\Tester\CommandTester;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
|
|
||||||
class ImportCommandTest extends WallabagCoreTestCase
|
class ImportCommandTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testRunImportCommandWithoutArguments()
|
public function testRunImportCommandWithoutArguments()
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,9 +8,9 @@ use Symfony\Bundle\FrameworkBundle\Console\Application;
|
||||||
use Symfony\Component\Config\Definition\Exception\Exception;
|
use Symfony\Component\Config\Definition\Exception\Exception;
|
||||||
use Symfony\Component\Console\Exception\RuntimeException;
|
use Symfony\Component\Console\Exception\RuntimeException;
|
||||||
use Symfony\Component\Console\Tester\CommandTester;
|
use Symfony\Component\Console\Tester\CommandTester;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
|
|
||||||
class RedisWorkerCommandTest extends WallabagCoreTestCase
|
class RedisWorkerCommandTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testRunRedisWorkerCommandWithoutArguments()
|
public function testRunRedisWorkerCommandWithoutArguments()
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,10 +13,10 @@ use Symfony\Component\Console\Command\LazyCommand;
|
||||||
use Symfony\Component\Console\Input\ArrayInput;
|
use Symfony\Component\Console\Input\ArrayInput;
|
||||||
use Symfony\Component\Console\Output\NullOutput;
|
use Symfony\Component\Console\Output\NullOutput;
|
||||||
use Symfony\Component\Console\Tester\CommandTester;
|
use Symfony\Component\Console\Tester\CommandTester;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Command\InstallCommand;
|
use Wallabag\Command\InstallCommand;
|
||||||
|
|
||||||
class InstallCommandTest extends WallabagCoreTestCase
|
class InstallCommandTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public static function setUpBeforeClass(): void
|
public static function setUpBeforeClass(): void
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,9 +4,9 @@ namespace Tests\Wallabag\Command;
|
||||||
|
|
||||||
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
||||||
use Symfony\Component\Console\Tester\CommandTester;
|
use Symfony\Component\Console\Tester\CommandTester;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
|
|
||||||
class ListUserCommandTest extends WallabagCoreTestCase
|
class ListUserCommandTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testRunListUserCommand()
|
public function testRunListUserCommand()
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,10 +4,10 @@ namespace Tests\Wallabag\Command;
|
||||||
|
|
||||||
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
||||||
use Symfony\Component\Console\Tester\CommandTester;
|
use Symfony\Component\Console\Tester\CommandTester;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
|
|
||||||
class ReloadEntryCommandTest extends WallabagCoreTestCase
|
class ReloadEntryCommandTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public $url = 'https://www.lemonde.fr/pixels/article/2015/03/28/plongee-dans-l-univers-d-ingress-le-jeu-de-google-aux-frontieres-du-reel_4601155_4408996.html';
|
public $url = 'https://www.lemonde.fr/pixels/article/2015/03/28/plongee-dans-l-univers-d-ingress-le-jeu-de-google-aux-frontieres-du-reel_4601155_4408996.html';
|
||||||
|
|
||||||
|
|
|
@ -6,10 +6,10 @@ use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
||||||
use Symfony\Component\Console\Exception\RuntimeException;
|
use Symfony\Component\Console\Exception\RuntimeException;
|
||||||
use Symfony\Component\Console\Tester\CommandTester;
|
use Symfony\Component\Console\Tester\CommandTester;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\User;
|
use Wallabag\Entity\User;
|
||||||
|
|
||||||
class ShowUserCommandTest extends WallabagCoreTestCase
|
class ShowUserCommandTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testRunShowUserCommandWithoutUsername()
|
public function testRunShowUserCommandWithoutUsername()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,9 +5,9 @@ namespace Tests\Wallabag\Command;
|
||||||
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
||||||
use Symfony\Component\Console\Exception\RuntimeException;
|
use Symfony\Component\Console\Exception\RuntimeException;
|
||||||
use Symfony\Component\Console\Tester\CommandTester;
|
use Symfony\Component\Console\Tester\CommandTester;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
|
|
||||||
class TagAllCommandTest extends WallabagCoreTestCase
|
class TagAllCommandTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testRunTagAllCommandWithoutUsername()
|
public function testRunTagAllCommandWithoutUsername()
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,10 +6,10 @@ use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
||||||
use Symfony\Component\Console\Exception\RuntimeException;
|
use Symfony\Component\Console\Exception\RuntimeException;
|
||||||
use Symfony\Component\Console\Tester\CommandTester;
|
use Symfony\Component\Console\Tester\CommandTester;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
|
|
||||||
class UpdatePicturesPathCommandTest extends WallabagCoreTestCase
|
class UpdatePicturesPathCommandTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testRunUpdatePicturesPathCommandWithoutOldURL()
|
public function testRunUpdatePicturesPathCommandWithoutOldURL()
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,12 +4,12 @@ namespace Tests\Wallabag\Controller;
|
||||||
|
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
|
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Annotation;
|
use Wallabag\Entity\Annotation;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
use Wallabag\Entity\User;
|
use Wallabag\Entity\User;
|
||||||
|
|
||||||
class AnnotationControllerTest extends WallabagCoreTestCase
|
class AnnotationControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var KernelBrowser
|
* @var KernelBrowser
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
namespace Tests\Wallabag\Controller\Api;
|
namespace Tests\Wallabag\Controller\Api;
|
||||||
|
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Api\Client;
|
use Wallabag\Entity\Api\Client;
|
||||||
|
|
||||||
class DeveloperControllerTest extends WallabagCoreTestCase
|
class DeveloperControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testCreateClient()
|
public function testCreateClient()
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,7 +6,7 @@ use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
use Symfony\Component\HttpFoundation\Session\SessionInterface;
|
use Symfony\Component\HttpFoundation\Session\SessionInterface;
|
||||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Annotation;
|
use Wallabag\Entity\Annotation;
|
||||||
use Wallabag\Entity\Config as ConfigEntity;
|
use Wallabag\Entity\Config as ConfigEntity;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
|
@ -15,7 +15,7 @@ use Wallabag\Entity\Tag;
|
||||||
use Wallabag\Entity\TaggingRule;
|
use Wallabag\Entity\TaggingRule;
|
||||||
use Wallabag\Entity\User;
|
use Wallabag\Entity\User;
|
||||||
|
|
||||||
class ConfigControllerTest extends WallabagCoreTestCase
|
class ConfigControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testLogin()
|
public function testLogin()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,7 @@ namespace Tests\Wallabag\Controller;
|
||||||
use Craue\ConfigBundle\Util\Config;
|
use Craue\ConfigBundle\Util\Config;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Annotation;
|
use Wallabag\Entity\Annotation;
|
||||||
use Wallabag\Entity\Config as ConfigEntity;
|
use Wallabag\Entity\Config as ConfigEntity;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
|
@ -15,7 +15,7 @@ use Wallabag\Entity\User;
|
||||||
use Wallabag\Helper\ContentProxy;
|
use Wallabag\Helper\ContentProxy;
|
||||||
use Wallabag\Helper\CryptoProxy;
|
use Wallabag\Helper\CryptoProxy;
|
||||||
|
|
||||||
class EntryControllerTest extends WallabagCoreTestCase
|
class EntryControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public const AN_URL_CONTAINING_AN_ARTICLE_WITH_IMAGE = 'https://www.lemonde.fr/judo/article/2017/11/11/judo-la-decima-de-teddy-riner_5213605_1556020.html';
|
public const AN_URL_CONTAINING_AN_ARTICLE_WITH_IMAGE = 'https://www.lemonde.fr/judo/article/2017/11/11/judo-la-decima-de-teddy-riner_5213605_1556020.html';
|
||||||
public $downloadImagesEnabled = false;
|
public $downloadImagesEnabled = false;
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
namespace Tests\Wallabag\Controller;
|
namespace Tests\Wallabag\Controller;
|
||||||
|
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
|
|
||||||
class ExportControllerTest extends WallabagCoreTestCase
|
class ExportControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
private $adminEntry;
|
private $adminEntry;
|
||||||
private $bobEntry;
|
private $bobEntry;
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
namespace Tests\Wallabag\Controller;
|
namespace Tests\Wallabag\Controller;
|
||||||
|
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
use Wallabag\Entity\User;
|
use Wallabag\Entity\User;
|
||||||
|
|
||||||
class FeedControllerTest extends WallabagCoreTestCase
|
class FeedControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function validateDom($xml, $type, $nb = null, $tagValue = null)
|
public function validateDom($xml, $type, $nb = null, $tagValue = null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
namespace Tests\Wallabag\Controller;
|
namespace Tests\Wallabag\Controller;
|
||||||
|
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
|
|
||||||
class IgnoreOriginInstanceRuleControllerTest extends WallabagCoreTestCase
|
class IgnoreOriginInstanceRuleControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testListIgnoreOriginInstanceRule()
|
public function testListIgnoreOriginInstanceRule()
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Predis\Client;
|
use Predis\Client;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
|
|
||||||
class ChromeControllerTest extends WallabagCoreTestCase
|
class ChromeControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testImportChrome()
|
public function testImportChrome()
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Predis\Client;
|
use Predis\Client;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
|
|
||||||
class DeliciousControllerTest extends WallabagCoreTestCase
|
class DeliciousControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testImportDelicious()
|
public function testImportDelicious()
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Predis\Client;
|
use Predis\Client;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
|
|
||||||
class ElcuratorControllerTest extends WallabagCoreTestCase
|
class ElcuratorControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testImportElcurator()
|
public function testImportElcurator()
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Predis\Client;
|
use Predis\Client;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
|
|
||||||
class FirefoxControllerTest extends WallabagCoreTestCase
|
class FirefoxControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testImportFirefox()
|
public function testImportFirefox()
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
namespace Tests\Wallabag\Controller\Import;
|
namespace Tests\Wallabag\Controller\Import;
|
||||||
|
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
|
|
||||||
class ImportControllerTest extends WallabagCoreTestCase
|
class ImportControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testLogin()
|
public function testLogin()
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Predis\Client;
|
use Predis\Client;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
|
|
||||||
class InstapaperControllerTest extends WallabagCoreTestCase
|
class InstapaperControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testImportInstapaper()
|
public function testImportInstapaper()
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Predis\Client;
|
use Predis\Client;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
|
|
||||||
class PinboardControllerTest extends WallabagCoreTestCase
|
class PinboardControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testImportPinboard()
|
public function testImportPinboard()
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,10 +4,10 @@ namespace Tests\Wallabag\Controller\Import;
|
||||||
|
|
||||||
use Craue\ConfigBundle\Util\Config;
|
use Craue\ConfigBundle\Util\Config;
|
||||||
use Symfony\Component\HttpFoundation\Session\SessionInterface;
|
use Symfony\Component\HttpFoundation\Session\SessionInterface;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Import\PocketImport;
|
use Wallabag\Import\PocketImport;
|
||||||
|
|
||||||
class PocketControllerTest extends WallabagCoreTestCase
|
class PocketControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testImportPocket()
|
public function testImportPocket()
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Predis\Client;
|
use Predis\Client;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
|
|
||||||
class PocketHtmlControllerTest extends WallabagCoreTestCase
|
class PocketHtmlControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testImportPocketHtml()
|
public function testImportPocketHtml()
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Predis\Client;
|
use Predis\Client;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
|
|
||||||
class ReadabilityControllerTest extends WallabagCoreTestCase
|
class ReadabilityControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testImportReadability()
|
public function testImportReadability()
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Predis\Client;
|
use Predis\Client;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
|
|
||||||
class ShaarliControllerTest extends WallabagCoreTestCase
|
class ShaarliControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testImportShaarli()
|
public function testImportShaarli()
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Predis\Client;
|
use Predis\Client;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
|
|
||||||
class WallabagV1ControllerTest extends WallabagCoreTestCase
|
class WallabagV1ControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testImportWallabag()
|
public function testImportWallabag()
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Predis\Client;
|
use Predis\Client;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
|
|
||||||
class WallabagV2ControllerTest extends WallabagCoreTestCase
|
class WallabagV2ControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testImportWallabag()
|
public function testImportWallabag()
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
namespace Tests\Wallabag\Controller;
|
namespace Tests\Wallabag\Controller;
|
||||||
|
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\User;
|
use Wallabag\Entity\User;
|
||||||
|
|
||||||
class SecurityControllerTest extends WallabagCoreTestCase
|
class SecurityControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testLoginWithEmail()
|
public function testLoginWithEmail()
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
namespace Tests\Wallabag\Controller;
|
namespace Tests\Wallabag\Controller;
|
||||||
|
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The controller `SettingsController` does not exist.
|
* The controller `SettingsController` does not exist.
|
||||||
* This test cover security against the internal settings page managed by CraueConfigBundle.
|
* This test cover security against the internal settings page managed by CraueConfigBundle.
|
||||||
*/
|
*/
|
||||||
class SettingsControllerTest extends WallabagCoreTestCase
|
class SettingsControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testSettingsWithAdmin()
|
public function testSettingsWithAdmin()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,10 +5,10 @@ namespace Tests\Wallabag\Controller;
|
||||||
use Craue\ConfigBundle\Util\Config;
|
use Craue\ConfigBundle\Util\Config;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
|
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\SiteCredential;
|
use Wallabag\Entity\SiteCredential;
|
||||||
|
|
||||||
class SiteCredentialControllerTest extends WallabagCoreTestCase
|
class SiteCredentialControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testAccessDeniedBecauseFeatureDisabled()
|
public function testAccessDeniedBecauseFeatureDisabled()
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
namespace Tests\Wallabag\Controller;
|
namespace Tests\Wallabag\Controller;
|
||||||
|
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
|
|
||||||
class StaticControllerTest extends WallabagCoreTestCase
|
class StaticControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testAbout()
|
public function testAbout()
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
namespace Tests\Wallabag\Controller;
|
namespace Tests\Wallabag\Controller;
|
||||||
|
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
use Wallabag\Entity\Tag;
|
use Wallabag\Entity\Tag;
|
||||||
use Wallabag\Entity\User;
|
use Wallabag\Entity\User;
|
||||||
|
@ -11,7 +11,7 @@ use Wallabag\Entity\User;
|
||||||
/**
|
/**
|
||||||
* @group Tag
|
* @group Tag
|
||||||
*/
|
*/
|
||||||
class TagControllerTest extends WallabagCoreTestCase
|
class TagControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public $tagName = 'opensource';
|
public $tagName = 'opensource';
|
||||||
public $caseTagName = 'OpenSource';
|
public $caseTagName = 'OpenSource';
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
namespace Tests\Wallabag\Controller;
|
namespace Tests\Wallabag\Controller;
|
||||||
|
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
|
|
||||||
class UserControllerTest extends WallabagCoreTestCase
|
class UserControllerTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testLogin()
|
public function testLogin()
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
namespace Tests\Wallabag\Entity;
|
namespace Tests\Wallabag\Entity;
|
||||||
|
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\Entry;
|
use Wallabag\Entity\Entry;
|
||||||
|
|
||||||
class EntryTest extends WallabagCoreTestCase
|
class EntryTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
public function testGetLanguage()
|
public function testGetLanguage()
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,12 +8,12 @@ use Monolog\Handler\TestHandler;
|
||||||
use Monolog\Logger;
|
use Monolog\Logger;
|
||||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
|
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
|
||||||
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
|
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
|
||||||
use Tests\Wallabag\WallabagCoreTestCase;
|
use Tests\Wallabag\WallabagTestCase;
|
||||||
use Wallabag\Entity\User;
|
use Wallabag\Entity\User;
|
||||||
use Wallabag\Repository\SiteCredentialRepository;
|
use Wallabag\Repository\SiteCredentialRepository;
|
||||||
use Wallabag\SiteConfig\GrabySiteConfigBuilder;
|
use Wallabag\SiteConfig\GrabySiteConfigBuilder;
|
||||||
|
|
||||||
class GrabySiteConfigBuilderTest extends WallabagCoreTestCase
|
class GrabySiteConfigBuilderTest extends WallabagTestCase
|
||||||
{
|
{
|
||||||
private $builder;
|
private $builder;
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ use Symfony\Component\Console\Output\NullOutput;
|
||||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
||||||
use Wallabag\Entity\User;
|
use Wallabag\Entity\User;
|
||||||
|
|
||||||
abstract class WallabagCoreTestCase extends WebTestCase
|
abstract class WallabagTestCase extends WebTestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var KernelBrowser|null
|
* @var KernelBrowser|null
|
Loading…
Reference in a new issue