Merge pull request #7292 from yguedidi/rename-wallabagcoretestcase-to-wallabagtestcase

Rename WallabagCoreTestCase to WallabagTestCase
This commit is contained in:
Yassine Guedidi 2024-02-25 16:33:26 +01:00 committed by GitHub
commit ce391a6801
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
40 changed files with 79 additions and 79 deletions

View file

@ -5,11 +5,11 @@ namespace Tests\Wallabag\Command;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Entry;
use Wallabag\Entity\User;
class CleanDuplicatesCommandTest extends WallabagCoreTestCase
class CleanDuplicatesCommandTest extends WallabagTestCase
{
public function testRunCleanDuplicates()
{

View file

@ -5,9 +5,9 @@ namespace Tests\Wallabag\Command;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Exception\RuntimeException;
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()
{

View file

@ -5,11 +5,11 @@ namespace Tests\Wallabag\Command;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Entry;
use Wallabag\Entity\User;
class GenerateUrlHashesCommandTest extends WallabagCoreTestCase
class GenerateUrlHashesCommandTest extends WallabagTestCase
{
public function testRunGenerateUrlHashesCommand()
{

View file

@ -7,9 +7,9 @@ use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Config\Definition\Exception\Exception;
use Symfony\Component\Console\Exception\RuntimeException;
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()
{

View file

@ -8,9 +8,9 @@ use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Config\Definition\Exception\Exception;
use Symfony\Component\Console\Exception\RuntimeException;
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()
{

View file

@ -13,10 +13,10 @@ use Symfony\Component\Console\Command\LazyCommand;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\NullOutput;
use Symfony\Component\Console\Tester\CommandTester;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Command\InstallCommand;
class InstallCommandTest extends WallabagCoreTestCase
class InstallCommandTest extends WallabagTestCase
{
public static function setUpBeforeClass(): void
{

View file

@ -4,9 +4,9 @@ namespace Tests\Wallabag\Command;
use Symfony\Bundle\FrameworkBundle\Console\Application;
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()
{

View file

@ -4,10 +4,10 @@ namespace Tests\Wallabag\Command;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
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';

View file

@ -6,10 +6,10 @@ use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Exception\RuntimeException;
use Symfony\Component\Console\Tester\CommandTester;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\User;
class ShowUserCommandTest extends WallabagCoreTestCase
class ShowUserCommandTest extends WallabagTestCase
{
public function testRunShowUserCommandWithoutUsername()
{

View file

@ -5,9 +5,9 @@ namespace Tests\Wallabag\Command;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Exception\RuntimeException;
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()
{

View file

@ -6,10 +6,10 @@ use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Exception\RuntimeException;
use Symfony\Component\Console\Tester\CommandTester;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Entry;
class UpdatePicturesPathCommandTest extends WallabagCoreTestCase
class UpdatePicturesPathCommandTest extends WallabagTestCase
{
public function testRunUpdatePicturesPathCommandWithoutOldURL()
{

View file

@ -4,12 +4,12 @@ namespace Tests\Wallabag\Controller;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Annotation;
use Wallabag\Entity\Entry;
use Wallabag\Entity\User;
class AnnotationControllerTest extends WallabagCoreTestCase
class AnnotationControllerTest extends WallabagTestCase
{
/**
* @var KernelBrowser

View file

@ -3,10 +3,10 @@
namespace Tests\Wallabag\Controller\Api;
use Doctrine\ORM\EntityManagerInterface;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Api\Client;
class DeveloperControllerTest extends WallabagCoreTestCase
class DeveloperControllerTest extends WallabagTestCase
{
public function testCreateClient()
{

View file

@ -6,7 +6,7 @@ use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Annotation;
use Wallabag\Entity\Config as ConfigEntity;
use Wallabag\Entity\Entry;
@ -15,7 +15,7 @@ use Wallabag\Entity\Tag;
use Wallabag\Entity\TaggingRule;
use Wallabag\Entity\User;
class ConfigControllerTest extends WallabagCoreTestCase
class ConfigControllerTest extends WallabagTestCase
{
public function testLogin()
{

View file

@ -5,7 +5,7 @@ namespace Tests\Wallabag\Controller;
use Craue\ConfigBundle\Util\Config;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Annotation;
use Wallabag\Entity\Config as ConfigEntity;
use Wallabag\Entity\Entry;
@ -15,7 +15,7 @@ use Wallabag\Entity\User;
use Wallabag\Helper\ContentProxy;
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 $downloadImagesEnabled = false;

View file

@ -3,10 +3,10 @@
namespace Tests\Wallabag\Controller;
use Doctrine\ORM\EntityManagerInterface;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Entry;
class ExportControllerTest extends WallabagCoreTestCase
class ExportControllerTest extends WallabagTestCase
{
private $adminEntry;
private $bobEntry;

View file

@ -3,11 +3,11 @@
namespace Tests\Wallabag\Controller;
use Doctrine\ORM\EntityManagerInterface;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Entry;
use Wallabag\Entity\User;
class FeedControllerTest extends WallabagCoreTestCase
class FeedControllerTest extends WallabagTestCase
{
public function validateDom($xml, $type, $nb = null, $tagValue = null)
{

View file

@ -2,9 +2,9 @@
namespace Tests\Wallabag\Controller;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
class IgnoreOriginInstanceRuleControllerTest extends WallabagCoreTestCase
class IgnoreOriginInstanceRuleControllerTest extends WallabagTestCase
{
public function testListIgnoreOriginInstanceRule()
{

View file

@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
use Doctrine\ORM\EntityManagerInterface;
use Predis\Client;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Entry;
class ChromeControllerTest extends WallabagCoreTestCase
class ChromeControllerTest extends WallabagTestCase
{
public function testImportChrome()
{

View file

@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
use Doctrine\ORM\EntityManagerInterface;
use Predis\Client;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Entry;
class DeliciousControllerTest extends WallabagCoreTestCase
class DeliciousControllerTest extends WallabagTestCase
{
public function testImportDelicious()
{

View file

@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
use Doctrine\ORM\EntityManagerInterface;
use Predis\Client;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Entry;
class ElcuratorControllerTest extends WallabagCoreTestCase
class ElcuratorControllerTest extends WallabagTestCase
{
public function testImportElcurator()
{

View file

@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
use Doctrine\ORM\EntityManagerInterface;
use Predis\Client;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Entry;
class FirefoxControllerTest extends WallabagCoreTestCase
class FirefoxControllerTest extends WallabagTestCase
{
public function testImportFirefox()
{

View file

@ -2,9 +2,9 @@
namespace Tests\Wallabag\Controller\Import;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
class ImportControllerTest extends WallabagCoreTestCase
class ImportControllerTest extends WallabagTestCase
{
public function testLogin()
{

View file

@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
use Doctrine\ORM\EntityManagerInterface;
use Predis\Client;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Entry;
class InstapaperControllerTest extends WallabagCoreTestCase
class InstapaperControllerTest extends WallabagTestCase
{
public function testImportInstapaper()
{

View file

@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
use Doctrine\ORM\EntityManagerInterface;
use Predis\Client;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Entry;
class PinboardControllerTest extends WallabagCoreTestCase
class PinboardControllerTest extends WallabagTestCase
{
public function testImportPinboard()
{

View file

@ -4,10 +4,10 @@ namespace Tests\Wallabag\Controller\Import;
use Craue\ConfigBundle\Util\Config;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Import\PocketImport;
class PocketControllerTest extends WallabagCoreTestCase
class PocketControllerTest extends WallabagTestCase
{
public function testImportPocket()
{

View file

@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
use Doctrine\ORM\EntityManagerInterface;
use Predis\Client;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Entry;
class PocketHtmlControllerTest extends WallabagCoreTestCase
class PocketHtmlControllerTest extends WallabagTestCase
{
public function testImportPocketHtml()
{

View file

@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
use Doctrine\ORM\EntityManagerInterface;
use Predis\Client;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Entry;
class ReadabilityControllerTest extends WallabagCoreTestCase
class ReadabilityControllerTest extends WallabagTestCase
{
public function testImportReadability()
{

View file

@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
use Doctrine\ORM\EntityManagerInterface;
use Predis\Client;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Entry;
class ShaarliControllerTest extends WallabagCoreTestCase
class ShaarliControllerTest extends WallabagTestCase
{
public function testImportShaarli()
{

View file

@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
use Doctrine\ORM\EntityManagerInterface;
use Predis\Client;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Entry;
class WallabagV1ControllerTest extends WallabagCoreTestCase
class WallabagV1ControllerTest extends WallabagTestCase
{
public function testImportWallabag()
{

View file

@ -6,10 +6,10 @@ use Craue\ConfigBundle\Util\Config;
use Doctrine\ORM\EntityManagerInterface;
use Predis\Client;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Entry;
class WallabagV2ControllerTest extends WallabagCoreTestCase
class WallabagV2ControllerTest extends WallabagTestCase
{
public function testImportWallabag()
{

View file

@ -3,10 +3,10 @@
namespace Tests\Wallabag\Controller;
use Doctrine\ORM\EntityManagerInterface;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\User;
class SecurityControllerTest extends WallabagCoreTestCase
class SecurityControllerTest extends WallabagTestCase
{
public function testLoginWithEmail()
{

View file

@ -2,13 +2,13 @@
namespace Tests\Wallabag\Controller;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
/**
* The controller `SettingsController` does not exist.
* This test cover security against the internal settings page managed by CraueConfigBundle.
*/
class SettingsControllerTest extends WallabagCoreTestCase
class SettingsControllerTest extends WallabagTestCase
{
public function testSettingsWithAdmin()
{

View file

@ -5,10 +5,10 @@ namespace Tests\Wallabag\Controller;
use Craue\ConfigBundle\Util\Config;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\SiteCredential;
class SiteCredentialControllerTest extends WallabagCoreTestCase
class SiteCredentialControllerTest extends WallabagTestCase
{
public function testAccessDeniedBecauseFeatureDisabled()
{

View file

@ -2,9 +2,9 @@
namespace Tests\Wallabag\Controller;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
class StaticControllerTest extends WallabagCoreTestCase
class StaticControllerTest extends WallabagTestCase
{
public function testAbout()
{

View file

@ -3,7 +3,7 @@
namespace Tests\Wallabag\Controller;
use Doctrine\ORM\EntityManagerInterface;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Entry;
use Wallabag\Entity\Tag;
use Wallabag\Entity\User;
@ -11,7 +11,7 @@ use Wallabag\Entity\User;
/**
* @group Tag
*/
class TagControllerTest extends WallabagCoreTestCase
class TagControllerTest extends WallabagTestCase
{
public $tagName = 'opensource';
public $caseTagName = 'OpenSource';

View file

@ -2,9 +2,9 @@
namespace Tests\Wallabag\Controller;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
class UserControllerTest extends WallabagCoreTestCase
class UserControllerTest extends WallabagTestCase
{
public function testLogin()
{

View file

@ -2,10 +2,10 @@
namespace Tests\Wallabag\Entity;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\Entry;
class EntryTest extends WallabagCoreTestCase
class EntryTest extends WallabagTestCase
{
public function testGetLanguage()
{

View file

@ -8,12 +8,12 @@ use Monolog\Handler\TestHandler;
use Monolog\Logger;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
use Tests\Wallabag\WallabagCoreTestCase;
use Tests\Wallabag\WallabagTestCase;
use Wallabag\Entity\User;
use Wallabag\Repository\SiteCredentialRepository;
use Wallabag\SiteConfig\GrabySiteConfigBuilder;
class GrabySiteConfigBuilderTest extends WallabagCoreTestCase
class GrabySiteConfigBuilderTest extends WallabagTestCase
{
private $builder;

View file

@ -11,7 +11,7 @@ use Symfony\Component\Console\Output\NullOutput;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Wallabag\Entity\User;
abstract class WallabagCoreTestCase extends WebTestCase
abstract class WallabagTestCase extends WebTestCase
{
/**
* @var KernelBrowser|null