Remove the CoreBundle namespace

This commit is contained in:
Yassine Guedidi
2024-02-19 01:30:12 +01:00
parent fe039247b5
commit 0b44170e83
338 changed files with 1061 additions and 1061 deletions

View File

@ -1,13 +1,13 @@
<?php
namespace Tests\Wallabag\CoreBundle\Command;
namespace Tests\Wallabag\Command;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
use Wallabag\CoreBundle\Entity\Entry;
use Wallabag\CoreBundle\Entity\User;
use Tests\Wallabag\WallabagCoreTestCase;
use Wallabag\Entity\Entry;
use Wallabag\Entity\User;
class CleanDuplicatesCommandTest extends WallabagCoreTestCase
{
@ -93,7 +93,7 @@ class CleanDuplicatesCommandTest extends WallabagCoreTestCase
$nbEntries = $em->getRepository(Entry::class)->findAllByUrlAndUserId($url, $this->getLoggedInUserId());
$this->assertCount(1, $nbEntries);
$query = $em->createQuery('DELETE FROM Wallabag\CoreBundle\Entity\Entry e WHERE e.url = :url');
$query = $em->createQuery('DELETE FROM Wallabag\Entity\Entry e WHERE e.url = :url');
$query->setParameter('url', $url);
$query->execute();
}

View File

@ -1,11 +1,11 @@
<?php
namespace Tests\Wallabag\CoreBundle\Command;
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\CoreBundle\WallabagCoreTestCase;
use Tests\Wallabag\WallabagCoreTestCase;
class ExportCommandTest extends WallabagCoreTestCase
{

View File

@ -1,13 +1,13 @@
<?php
namespace Tests\Wallabag\CoreBundle\Command;
namespace Tests\Wallabag\Command;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
use Wallabag\CoreBundle\Entity\Entry;
use Wallabag\CoreBundle\Entity\User;
use Tests\Wallabag\WallabagCoreTestCase;
use Wallabag\Entity\Entry;
use Wallabag\Entity\User;
class GenerateUrlHashesCommandTest extends WallabagCoreTestCase
{
@ -83,7 +83,7 @@ class GenerateUrlHashesCommandTest extends WallabagCoreTestCase
$this->assertSame($entry->getHashedUrl(), hash('sha1', $url));
$query = $em->createQuery('DELETE FROM Wallabag\CoreBundle\Entity\Entry e WHERE e.url = :url');
$query = $em->createQuery('DELETE FROM Wallabag\Entity\Entry e WHERE e.url = :url');
$query->setParameter('url', $url);
$query->execute();
}

View File

@ -1,13 +1,13 @@
<?php
namespace Tests\Wallabag\CoreBundle\Command\Import;
namespace Tests\Wallabag\Command\Import;
use Doctrine\ORM\NoResultException;
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\CoreBundle\WallabagCoreTestCase;
use Tests\Wallabag\WallabagCoreTestCase;
class ImportCommandTest extends WallabagCoreTestCase
{

View File

@ -1,6 +1,6 @@
<?php
namespace Tests\Wallabag\CoreBundle\Command\Import;
namespace Tests\Wallabag\Command\Import;
use M6Web\Component\RedisMock\RedisMockFactory;
use Predis\Client;
@ -8,7 +8,7 @@ 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\CoreBundle\WallabagCoreTestCase;
use Tests\Wallabag\WallabagCoreTestCase;
class RedisWorkerCommandTest extends WallabagCoreTestCase
{

View File

@ -1,6 +1,6 @@
<?php
namespace Tests\Wallabag\CoreBundle\Command;
namespace Tests\Wallabag\Command;
use DAMA\DoctrineTestBundle\Doctrine\DBAL\StaticDriver;
use Doctrine\DBAL\Connection;
@ -13,8 +13,8 @@ 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\CoreBundle\WallabagCoreTestCase;
use Wallabag\CoreBundle\Command\InstallCommand;
use Tests\Wallabag\WallabagCoreTestCase;
use Wallabag\Command\InstallCommand;
class InstallCommandTest extends WallabagCoreTestCase
{

View File

@ -1,10 +1,10 @@
<?php
namespace Tests\Wallabag\CoreBundle\Command;
namespace Tests\Wallabag\Command;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
use Tests\Wallabag\WallabagCoreTestCase;
class ListUserCommandTest extends WallabagCoreTestCase
{

View File

@ -1,11 +1,11 @@
<?php
namespace Tests\Wallabag\CoreBundle\Command;
namespace Tests\Wallabag\Command;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
use Wallabag\CoreBundle\Entity\Entry;
use Tests\Wallabag\WallabagCoreTestCase;
use Wallabag\Entity\Entry;
class ReloadEntryCommandTest extends WallabagCoreTestCase
{

View File

@ -1,13 +1,13 @@
<?php
namespace Tests\Wallabag\CoreBundle\Command;
namespace Tests\Wallabag\Command;
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\CoreBundle\WallabagCoreTestCase;
use Wallabag\CoreBundle\Entity\User;
use Tests\Wallabag\WallabagCoreTestCase;
use Wallabag\Entity\User;
class ShowUserCommandTest extends WallabagCoreTestCase
{

View File

@ -1,11 +1,11 @@
<?php
namespace Tests\Wallabag\CoreBundle\Command;
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\CoreBundle\WallabagCoreTestCase;
use Tests\Wallabag\WallabagCoreTestCase;
class TagAllCommandTest extends WallabagCoreTestCase
{

View File

@ -1,13 +1,13 @@
<?php
namespace Tests\Wallabag\CoreBundle\Command;
namespace Tests\Wallabag\Command;
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\CoreBundle\WallabagCoreTestCase;
use Wallabag\CoreBundle\Entity\Entry;
use Tests\Wallabag\WallabagCoreTestCase;
use Wallabag\Entity\Entry;
class UpdatePicturesPathCommandTest extends WallabagCoreTestCase
{
@ -51,7 +51,7 @@ class UpdatePicturesPathCommandTest extends WallabagCoreTestCase
$entry = $em->getRepository(Entry::class)->findOneByUrl($url);
$this->assertSame($entry->getPreviewPicture(), $client->getContainer()->getParameter('domain_name') . '/mypicture.jpg');
$query = $em->createQuery('DELETE FROM Wallabag\CoreBundle\Entity\Entry e WHERE e.url = :url');
$query = $em->createQuery('DELETE FROM Wallabag\Entity\Entry e WHERE e.url = :url');
$query->setParameter('url', $url);
$query->execute();
}