From 9919f34fec116a95838cc0365ccbc15279fc4392 Mon Sep 17 00:00:00 2001 From: Alexis Lefebvre Date: Sun, 24 Mar 2019 23:34:01 +0100 Subject: [PATCH] 2.x: Use Acme namespace for internal tests --- composer.json | 2 +- phpunit.xml.dist | 2 +- tests/App/AcmeBundle.php | 2 +- tests/App/AppKernel.php | 4 +-- tests/App/Command/TestCommand.php | 2 +- tests/App/Command/TestStatusCodeCommand.php | 2 +- tests/App/Controller/DefaultController.php | 4 +-- .../ORM/LoadDependentUserData.php | 6 ++-- .../ORM/LoadDependentUserWithServiceData.php | 6 ++-- .../DataFixtures/ORM/LoadSecondUserData.php | 6 ++-- tests/App/DataFixtures/ORM/LoadUserData.php | 6 ++-- .../ORM/LoadUserWithServiceData.php | 6 ++-- tests/App/DataFixtures/ORM/user.yml | 2 +- .../ORM/user_with_custom_provider.yml | 2 +- tests/App/Entity/User.php | 2 +- .../Resources/config/doctrine/User.orm.yml | 2 +- .../Resources/views/form_with_embed.html.twig | 2 +- tests/App/config.yml | 14 ++++---- tests/App/routing.yml | 10 +++--- tests/AppConfig/AppConfigKernel.php | 4 +-- .../Faker/Provider/FooProvider.php | 2 +- tests/AppConfig/config.yml | 2 +- .../AppConfigLeanFrameworkKernel.php | 4 +-- tests/AppConfigMysql/AppConfigMysqlKernel.php | 4 +-- .../AppConfigMysqlKernelCacheDb.php | 4 +-- tests/AppConfigPhpcr/AppConfigPhpcrKernel.php | 4 +-- .../DataFixtures/PHPCR/LoadTaskData.php | 4 +-- tests/AppConfigPhpcr/Document/Task.php | 2 +- tests/AppConfigPhpcr/config.yml | 4 +-- tests/Command/CommandConfigTest.php | 4 +-- tests/Command/CommandTest.php | 2 +- tests/Command/ParatestCommandTest.php | 4 +-- .../Compiler/SetTestClientPassMockTest.php | 2 +- .../ConfigurationConfigTest.php | 4 +-- .../DependencyInjection/ConfigurationTest.php | 2 +- .../WebTestCaseConfigLeanFrameworkTest.php | 4 +-- .../WebTestCaseConfigMysqlCacheDbTest.php | 10 +++--- tests/Test/WebTestCaseConfigMysqlTest.php | 24 +++++++------- tests/Test/WebTestCaseConfigPhpcrTest.php | 6 ++-- tests/Test/WebTestCaseConfigTest.php | 26 +++++++-------- tests/Test/WebTestCaseTest.php | 32 +++++++++---------- 41 files changed, 118 insertions(+), 118 deletions(-) diff --git a/composer.json b/composer.json index ee3c04c5..6dd3c981 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,7 @@ }, "autoload-dev": { "psr-4": { - "Liip\\FunctionalTestBundle\\Tests\\": "tests/" + "Liip\\Acme\\Tests\\": "tests/" } }, "config": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 7f3fe992..98c8d9b8 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -10,7 +10,7 @@ > - + diff --git a/tests/App/AcmeBundle.php b/tests/App/AcmeBundle.php index 27d0c9cd..971cc3e9 100644 --- a/tests/App/AcmeBundle.php +++ b/tests/App/AcmeBundle.php @@ -11,7 +11,7 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\App; +namespace Liip\Acme\Tests\App; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; diff --git a/tests/App/AppKernel.php b/tests/App/AppKernel.php index fe589554..9185d5f6 100644 --- a/tests/App/AppKernel.php +++ b/tests/App/AppKernel.php @@ -11,7 +11,7 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\App; +namespace Liip\Acme\Tests\App; use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; @@ -29,7 +29,7 @@ public function registerBundles(): array new \Doctrine\Bundle\DoctrineBundle\DoctrineBundle(), new \Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(), new \Liip\FunctionalTestBundle\LiipFunctionalTestBundle(), - new \Liip\FunctionalTestBundle\Tests\App\AcmeBundle(), + new \Liip\Acme\Tests\App\AcmeBundle(), new \Nelmio\Alice\Bridge\Symfony\NelmioAliceBundle(), new \Fidry\AliceDataFixtures\Bridge\Symfony\FidryAliceDataFixturesBundle(), ]; diff --git a/tests/App/Command/TestCommand.php b/tests/App/Command/TestCommand.php index 6b9a1317..83f313b9 100644 --- a/tests/App/Command/TestCommand.php +++ b/tests/App/Command/TestCommand.php @@ -11,7 +11,7 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\App\Command; +namespace Liip\Acme\Tests\App\Command; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\Console\Input\InputInterface; diff --git a/tests/App/Command/TestStatusCodeCommand.php b/tests/App/Command/TestStatusCodeCommand.php index 64a83a32..b00c66da 100644 --- a/tests/App/Command/TestStatusCodeCommand.php +++ b/tests/App/Command/TestStatusCodeCommand.php @@ -11,7 +11,7 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\App\Command; +namespace Liip\Acme\Tests\App\Command; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\Console\Input\InputInterface; diff --git a/tests/App/Controller/DefaultController.php b/tests/App/Controller/DefaultController.php index 31c745a6..32969980 100644 --- a/tests/App/Controller/DefaultController.php +++ b/tests/App/Controller/DefaultController.php @@ -11,7 +11,7 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\App\Controller; +namespace Liip\Acme\Tests\App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\Form\Extension\Core\Type\SubmitType; @@ -39,7 +39,7 @@ public function indexAction(): Response */ public function userAction(int $userId): Response { - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */ + /** @var \Liip\Acme\Tests\App\Entity\User $user */ $user = $this->getDoctrine() ->getRepository('LiipFunctionalTestBundle:User') ->find($userId); diff --git a/tests/App/DataFixtures/ORM/LoadDependentUserData.php b/tests/App/DataFixtures/ORM/LoadDependentUserData.php index 98d64a84..1b3fc5ce 100644 --- a/tests/App/DataFixtures/ORM/LoadDependentUserData.php +++ b/tests/App/DataFixtures/ORM/LoadDependentUserData.php @@ -11,7 +11,7 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM; +namespace Liip\Acme\Tests\App\DataFixtures\ORM; use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\DataFixtures\DependentFixtureInterface; @@ -38,7 +38,7 @@ public function setContainer(ContainerInterface $container = null): void */ public function load(ObjectManager $manager): void { - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */ + /** @var \Liip\Acme\Tests\App\Entity\User $user */ $user = clone $this->getReference('user'); $user->setId(3); @@ -60,7 +60,7 @@ public function load(ObjectManager $manager): void public function getDependencies(): array { return [ - 'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadUserData', + 'Liip\Acme\Tests\App\DataFixtures\ORM\LoadUserData', ]; } } diff --git a/tests/App/DataFixtures/ORM/LoadDependentUserWithServiceData.php b/tests/App/DataFixtures/ORM/LoadDependentUserWithServiceData.php index 15dc7d70..d9631e36 100644 --- a/tests/App/DataFixtures/ORM/LoadDependentUserWithServiceData.php +++ b/tests/App/DataFixtures/ORM/LoadDependentUserWithServiceData.php @@ -11,7 +11,7 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM; +namespace Liip\Acme\Tests\App\DataFixtures\ORM; use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\DataFixtures\DependentFixtureInterface; @@ -38,7 +38,7 @@ public function setContainer(ContainerInterface $container = null): void */ public function load(ObjectManager $manager): void { - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */ + /** @var \Liip\Acme\Tests\App\Entity\User $user */ $user = clone $this->getReference('user'); $user->setId(3); @@ -60,7 +60,7 @@ public function load(ObjectManager $manager): void public function getDependencies(): array { return [ - 'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadUserWithServiceData', + 'Liip\Acme\Tests\App\DataFixtures\ORM\LoadUserWithServiceData', ]; } } diff --git a/tests/App/DataFixtures/ORM/LoadSecondUserData.php b/tests/App/DataFixtures/ORM/LoadSecondUserData.php index ad9958eb..3f5cb3aa 100644 --- a/tests/App/DataFixtures/ORM/LoadSecondUserData.php +++ b/tests/App/DataFixtures/ORM/LoadSecondUserData.php @@ -11,12 +11,12 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM; +namespace Liip\Acme\Tests\App\DataFixtures\ORM; use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\DataFixtures\FixtureInterface; use Doctrine\Common\Persistence\ObjectManager; -use Liip\FunctionalTestBundle\Tests\App\Entity\User; +use Liip\Acme\Tests\App\Entity\User; use Symfony\Component\DependencyInjection\ContainerInterface; class LoadSecondUserData extends AbstractFixture implements FixtureInterface @@ -39,7 +39,7 @@ public function setContainer(ContainerInterface $container = null): void */ public function load(ObjectManager $manager): void { - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */ + /** @var \Liip\Acme\Tests\App\Entity\User $user */ $user = new User(); $user->setName('bar foo'); $user->setEmail('bar@foo.com'); diff --git a/tests/App/DataFixtures/ORM/LoadUserData.php b/tests/App/DataFixtures/ORM/LoadUserData.php index 79ee38c0..22fb1527 100644 --- a/tests/App/DataFixtures/ORM/LoadUserData.php +++ b/tests/App/DataFixtures/ORM/LoadUserData.php @@ -11,12 +11,12 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM; +namespace Liip\Acme\Tests\App\DataFixtures\ORM; use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\DataFixtures\FixtureInterface; use Doctrine\Common\Persistence\ObjectManager; -use Liip\FunctionalTestBundle\Tests\App\Entity\User; +use Liip\Acme\Tests\App\Entity\User; use Symfony\Component\DependencyInjection\ContainerInterface; class LoadUserData extends AbstractFixture implements FixtureInterface @@ -39,7 +39,7 @@ public function setContainer(ContainerInterface $container = null): void */ public function load(ObjectManager $manager): void { - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */ + /** @var \Liip\Acme\Tests\App\Entity\User $user */ $user = new User(); $user->setId(1); $user->setName('foo bar'); diff --git a/tests/App/DataFixtures/ORM/LoadUserWithServiceData.php b/tests/App/DataFixtures/ORM/LoadUserWithServiceData.php index 29d55c4e..4ab44140 100644 --- a/tests/App/DataFixtures/ORM/LoadUserWithServiceData.php +++ b/tests/App/DataFixtures/ORM/LoadUserWithServiceData.php @@ -11,12 +11,12 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM; +namespace Liip\Acme\Tests\App\DataFixtures\ORM; use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\DataFixtures\FixtureInterface; use Doctrine\Common\Persistence\ObjectManager; -use Liip\FunctionalTestBundle\Tests\App\Entity\User; +use Liip\Acme\Tests\App\Entity\User; use Symfony\Component\Security\Csrf\TokenStorage\TokenStorageInterface; class LoadUserWithServiceData extends AbstractFixture implements FixtureInterface @@ -35,7 +35,7 @@ public function load(ObjectManager $manager): void { $this->tokenStorage->setToken('id', 'value'); - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */ + /** @var \Liip\Acme\Tests\App\Entity\User $user */ $user = new User(); $user->setId(1); $user->setName('foo bar'); diff --git a/tests/App/DataFixtures/ORM/user.yml b/tests/App/DataFixtures/ORM/user.yml index 4dcab264..d639fa70 100644 --- a/tests/App/DataFixtures/ORM/user.yml +++ b/tests/App/DataFixtures/ORM/user.yml @@ -1,4 +1,4 @@ -Liip\FunctionalTestBundle\Tests\App\Entity\User: +Liip\Acme\Tests\App\Entity\User: id{1..10}: name: email: diff --git a/tests/App/DataFixtures/ORM/user_with_custom_provider.yml b/tests/App/DataFixtures/ORM/user_with_custom_provider.yml index 02ac55be..31fa715f 100644 --- a/tests/App/DataFixtures/ORM/user_with_custom_provider.yml +++ b/tests/App/DataFixtures/ORM/user_with_custom_provider.yml @@ -1,4 +1,4 @@ -Liip\FunctionalTestBundle\Tests\App\Entity\User: +Liip\Acme\Tests\App\Entity\User: id{1..10}: name: email: diff --git a/tests/App/Entity/User.php b/tests/App/Entity/User.php index fad26304..105b7efa 100644 --- a/tests/App/Entity/User.php +++ b/tests/App/Entity/User.php @@ -11,7 +11,7 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\App\Entity; +namespace Liip\Acme\Tests\App\Entity; use Symfony\Component\Security\Core\User\UserInterface; diff --git a/tests/App/Resources/config/doctrine/User.orm.yml b/tests/App/Resources/config/doctrine/User.orm.yml index 9f2b666b..e3712e3f 100644 --- a/tests/App/Resources/config/doctrine/User.orm.yml +++ b/tests/App/Resources/config/doctrine/User.orm.yml @@ -1,4 +1,4 @@ -Liip\FunctionalTestBundle\Tests\App\Entity\User: +Liip\Acme\Tests\App\Entity\User: type: entity table: 'liip_user' id: diff --git a/tests/App/Resources/views/form_with_embed.html.twig b/tests/App/Resources/views/form_with_embed.html.twig index 171ac884..c41e90e1 100644 --- a/tests/App/Resources/views/form_with_embed.html.twig +++ b/tests/App/Resources/views/form_with_embed.html.twig @@ -2,7 +2,7 @@ {% block body %}
- {{ render(controller('Liip\\FunctionalTestBundle\\Tests\\App\\Controller\\DefaultController::embeddedAction')) }} + {{ render(controller('Liip\\Acme\\Tests\\App\\Controller\\DefaultController::embeddedAction')) }}
{{ form(form) }} diff --git a/tests/App/config.yml b/tests/App/config.yml index 5d969044..c03ef9fd 100644 --- a/tests/App/config.yml +++ b/tests/App/config.yml @@ -44,18 +44,18 @@ doctrine: LiipFunctionalTestBundle: type: php dir: "%kernel.root_dir%/../App/Entity" - prefix: 'Liip\FunctionalTestBundle\Tests\App\Entity' + prefix: 'Liip\Acme\Tests\App\Entity' LiipFunctionalTestBundleYml: type: "yml" dir: "%kernel.root_dir%/../App/Resources/config/doctrine" - prefix: 'Liip\FunctionalTestBundle\Tests\App\Entity' + prefix: 'Liip\Acme\Tests\App\Entity' security: encoders: # in_memory users Symfony\Component\Security\Core\User\User: plaintext # User entity - Liip\FunctionalTestBundle\Tests\App\Entity\User: plaintext + Liip\Acme\Tests\App\Entity\User: plaintext providers: chain_provider: chain: @@ -67,7 +67,7 @@ security: password: "12341234" roles: 'ROLE_USER' main: - entity: { class: Liip\FunctionalTestBundle\Tests\App\Entity\User, property: id } + entity: { class: Liip\Acme\Tests\App\Entity\User, property: id } firewalls: secured_area: pattern: ^/ @@ -82,10 +82,10 @@ services: _defaults: autowire: true autoconfigure: true - Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\: + Liip\Acme\Tests\App\DataFixtures\ORM\: resource: 'DataFixtures/ORM/*' tags: ['doctrine.fixture.orm'] - Liip\FunctionalTestBundle\Tests\App\Command\TestCommand: + Liip\Acme\Tests\App\Command\TestCommand: tags: ['console.command'] - Liip\FunctionalTestBundle\Tests\App\Command\TestStatusCodeCommand: + Liip\Acme\Tests\App\Command\TestStatusCodeCommand: tags: ['console.command'] diff --git a/tests/App/routing.yml b/tests/App/routing.yml index 2de76e1d..e011d99f 100644 --- a/tests/App/routing.yml +++ b/tests/App/routing.yml @@ -1,23 +1,23 @@ liipfunctionaltestbundle_homepage: path: / - defaults: { _controller: 'Liip\FunctionalTestBundle\Tests\App\Controller\DefaultController::indexAction' } + defaults: { _controller: 'Liip\Acme\Tests\App\Controller\DefaultController::indexAction' } liipfunctionaltestbundle_user: path: /user/{userId} - defaults: { _controller: 'Liip\FunctionalTestBundle\Tests\App\Controller\DefaultController::userAction' } + defaults: { _controller: 'Liip\Acme\Tests\App\Controller\DefaultController::userAction' } requirements: userId: \d+ liipfunctionaltestbundle_form: path: /form - defaults: { _controller: 'Liip\FunctionalTestBundle\Tests\App\Controller\DefaultController::formAction' } + defaults: { _controller: 'Liip\Acme\Tests\App\Controller\DefaultController::formAction' } liipfunctionaltestbundle_form_with_embed: path: /form-with-embed - defaults: { _controller: 'Liip\FunctionalTestBundle\Tests\App\Controller\DefaultController::formWithEmbedAction' } + defaults: { _controller: 'Liip\Acme\Tests\App\Controller\DefaultController::formWithEmbedAction' } liipfunctionaltestbundle_json: path: /json - defaults: { _controller: 'Liip\FunctionalTestBundle\Tests\App\Controller\DefaultController::jsonAction' } + defaults: { _controller: 'Liip\Acme\Tests\App\Controller\DefaultController::jsonAction' } requirements: userId: \d+ diff --git a/tests/AppConfig/AppConfigKernel.php b/tests/AppConfig/AppConfigKernel.php index 93fb6b32..a3ec8597 100644 --- a/tests/AppConfig/AppConfigKernel.php +++ b/tests/AppConfig/AppConfigKernel.php @@ -11,7 +11,7 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\AppConfig; +namespace Liip\Acme\Tests\AppConfig; /* * This file is part of the Liip/FunctionalTestBundle @@ -22,7 +22,7 @@ * with this source code in the file LICENSE. */ -use Liip\FunctionalTestBundle\Tests\App\AppKernel; +use Liip\Acme\Tests\App\AppKernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppConfigKernel extends AppKernel diff --git a/tests/AppConfig/DataFixtures/Faker/Provider/FooProvider.php b/tests/AppConfig/DataFixtures/Faker/Provider/FooProvider.php index 5b26b293..c5298596 100644 --- a/tests/AppConfig/DataFixtures/Faker/Provider/FooProvider.php +++ b/tests/AppConfig/DataFixtures/Faker/Provider/FooProvider.php @@ -11,7 +11,7 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\AppConfig\DataFixtures\Faker\Provider; +namespace Liip\Acme\Tests\AppConfig\DataFixtures\Faker\Provider; class FooProvider { diff --git a/tests/AppConfig/config.yml b/tests/AppConfig/config.yml index ba4dfe48..83f9ffbf 100644 --- a/tests/AppConfig/config.yml +++ b/tests/AppConfig/config.yml @@ -25,5 +25,5 @@ liip_functional_test: services: # HautelookAliceBundle: custom Faker provider faker.provider.foo: - class: Liip\FunctionalTestBundle\Tests\AppConfig\DataFixtures\Faker\Provider\FooProvider + class: Liip\Acme\Tests\AppConfig\DataFixtures\Faker\Provider\FooProvider tags: [ { name: nelmio_alice.faker.provider } ] diff --git a/tests/AppConfigLeanFramework/AppConfigLeanFrameworkKernel.php b/tests/AppConfigLeanFramework/AppConfigLeanFrameworkKernel.php index 7d830821..efa4d97d 100644 --- a/tests/AppConfigLeanFramework/AppConfigLeanFrameworkKernel.php +++ b/tests/AppConfigLeanFramework/AppConfigLeanFrameworkKernel.php @@ -11,9 +11,9 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\AppConfigLeanFramework; +namespace Liip\Acme\Tests\AppConfigLeanFramework; -use Liip\FunctionalTestBundle\Tests\App\AppKernel; +use Liip\Acme\Tests\App\AppKernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppConfigLeanFrameworkKernel extends AppKernel diff --git a/tests/AppConfigMysql/AppConfigMysqlKernel.php b/tests/AppConfigMysql/AppConfigMysqlKernel.php index f05aba0d..48322331 100644 --- a/tests/AppConfigMysql/AppConfigMysqlKernel.php +++ b/tests/AppConfigMysql/AppConfigMysqlKernel.php @@ -11,9 +11,9 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\AppConfigMysql; +namespace Liip\Acme\Tests\AppConfigMysql; -use Liip\FunctionalTestBundle\Tests\App\AppKernel; +use Liip\Acme\Tests\App\AppKernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppConfigMysqlKernel extends AppKernel diff --git a/tests/AppConfigMysqlCacheDb/AppConfigMysqlKernelCacheDb.php b/tests/AppConfigMysqlCacheDb/AppConfigMysqlKernelCacheDb.php index eb0e62c1..1f85ad7b 100644 --- a/tests/AppConfigMysqlCacheDb/AppConfigMysqlKernelCacheDb.php +++ b/tests/AppConfigMysqlCacheDb/AppConfigMysqlKernelCacheDb.php @@ -11,9 +11,9 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\AppConfigMysqlCacheDb; +namespace Liip\Acme\Tests\AppConfigMysqlCacheDb; -use Liip\FunctionalTestBundle\Tests\AppConfigMysql\AppConfigMysqlKernel; +use Liip\Acme\Tests\AppConfigMysql\AppConfigMysqlKernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppConfigMysqlKernelCacheDb extends AppConfigMysqlKernel diff --git a/tests/AppConfigPhpcr/AppConfigPhpcrKernel.php b/tests/AppConfigPhpcr/AppConfigPhpcrKernel.php index b70d69e9..e753d534 100644 --- a/tests/AppConfigPhpcr/AppConfigPhpcrKernel.php +++ b/tests/AppConfigPhpcr/AppConfigPhpcrKernel.php @@ -11,9 +11,9 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\AppConfigPhpcr; +namespace Liip\Acme\Tests\AppConfigPhpcr; -use Liip\FunctionalTestBundle\Tests\App\AppKernel; +use Liip\Acme\Tests\App\AppKernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppConfigPhpcrKernel extends AppKernel diff --git a/tests/AppConfigPhpcr/DataFixtures/PHPCR/LoadTaskData.php b/tests/AppConfigPhpcr/DataFixtures/PHPCR/LoadTaskData.php index 99ff231b..8ca93759 100644 --- a/tests/AppConfigPhpcr/DataFixtures/PHPCR/LoadTaskData.php +++ b/tests/AppConfigPhpcr/DataFixtures/PHPCR/LoadTaskData.php @@ -11,12 +11,12 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\AppConfigPhpcr\DataFixtures\PHPCR; +namespace Liip\Acme\Tests\AppConfigPhpcr\DataFixtures\PHPCR; use Doctrine\Common\DataFixtures\FixtureInterface; use Doctrine\Common\Persistence\ObjectManager; use Doctrine\ODM\PHPCR\DocumentManager; -use Liip\FunctionalTestBundle\Tests\AppConfigPhpcr\Document\Task; +use Liip\Acme\Tests\AppConfigPhpcr\Document\Task; class LoadTaskData implements FixtureInterface { diff --git a/tests/AppConfigPhpcr/Document/Task.php b/tests/AppConfigPhpcr/Document/Task.php index bb8e5b5a..3fabab79 100644 --- a/tests/AppConfigPhpcr/Document/Task.php +++ b/tests/AppConfigPhpcr/Document/Task.php @@ -11,7 +11,7 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\AppConfigPhpcr\Document; +namespace Liip\Acme\Tests\AppConfigPhpcr\Document; use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCR; diff --git a/tests/AppConfigPhpcr/config.yml b/tests/AppConfigPhpcr/config.yml index d2b9b9eb..3247aae6 100644 --- a/tests/AppConfigPhpcr/config.yml +++ b/tests/AppConfigPhpcr/config.yml @@ -12,9 +12,9 @@ doctrine_phpcr: LiipFunctionalTestBundle: type: annotation dir: "%kernel.root_dir%/../AppConfigPhpcr/Document" - prefix: 'Liip\FunctionalTestBundle\Tests\AppConfigPhpcr\Document' + prefix: 'Liip\Acme\Tests\AppConfigPhpcr\Document' services: - Liip\FunctionalTestBundle\Tests\AppConfigPhpcr\DataFixtures\PHPCR\: + Liip\Acme\Tests\AppConfigPhpcr\DataFixtures\PHPCR\: resource: 'DataFixtures/PHPCR/*' tags: ['doctrine.fixture.orm'] diff --git a/tests/Command/CommandConfigTest.php b/tests/Command/CommandConfigTest.php index 987f6c3b..27c364f4 100644 --- a/tests/Command/CommandConfigTest.php +++ b/tests/Command/CommandConfigTest.php @@ -11,10 +11,10 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\Command; +namespace Liip\Acme\Tests\Command; use Liip\FunctionalTestBundle\Test\WebTestCase; -use Liip\FunctionalTestBundle\Tests\AppConfig\AppConfigKernel; +use Liip\Acme\Tests\AppConfig\AppConfigKernel; use Symfony\Component\Console\Tester\CommandTester; /** diff --git a/tests/Command/CommandTest.php b/tests/Command/CommandTest.php index cc2f3424..0113c07c 100644 --- a/tests/Command/CommandTest.php +++ b/tests/Command/CommandTest.php @@ -11,7 +11,7 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\Command; +namespace Liip\Acme\Tests\Command; use Liip\FunctionalTestBundle\Test\WebTestCase; use Symfony\Component\Console\Output\OutputInterface; diff --git a/tests/Command/ParatestCommandTest.php b/tests/Command/ParatestCommandTest.php index f5d2aab9..79b2beda 100644 --- a/tests/Command/ParatestCommandTest.php +++ b/tests/Command/ParatestCommandTest.php @@ -11,10 +11,10 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\Command; +namespace Liip\Acme\Tests\Command; use Liip\FunctionalTestBundle\Test\WebTestCase; -use Liip\FunctionalTestBundle\Tests\AppConfig\AppConfigKernel; +use Liip\Acme\Tests\AppConfig\AppConfigKernel; use Symfony\Bundle\FrameworkBundle\Console\Application; /** diff --git a/tests/DependencyInjection/Compiler/SetTestClientPassMockTest.php b/tests/DependencyInjection/Compiler/SetTestClientPassMockTest.php index a43d2e30..23287378 100644 --- a/tests/DependencyInjection/Compiler/SetTestClientPassMockTest.php +++ b/tests/DependencyInjection/Compiler/SetTestClientPassMockTest.php @@ -11,7 +11,7 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\DependencyInjection\Compiler; +namespace Liip\Acme\Tests\DependencyInjection\Compiler; use Liip\FunctionalTestBundle\DependencyInjection\Compiler\SetTestClientPass; use PHPUnit\Framework\TestCase; diff --git a/tests/DependencyInjection/ConfigurationConfigTest.php b/tests/DependencyInjection/ConfigurationConfigTest.php index 818fb756..424a831d 100644 --- a/tests/DependencyInjection/ConfigurationConfigTest.php +++ b/tests/DependencyInjection/ConfigurationConfigTest.php @@ -11,9 +11,9 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\DependencyInjection; +namespace Liip\Acme\Tests\DependencyInjection; -use Liip\FunctionalTestBundle\Tests\AppConfig\AppConfigKernel; +use Liip\Acme\Tests\AppConfig\AppConfigKernel; /** * Use Tests/AppConfig/AppConfigKernel.php instead of diff --git a/tests/DependencyInjection/ConfigurationTest.php b/tests/DependencyInjection/ConfigurationTest.php index 0f318ef7..e32b70c2 100644 --- a/tests/DependencyInjection/ConfigurationTest.php +++ b/tests/DependencyInjection/ConfigurationTest.php @@ -11,7 +11,7 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\DependencyInjection; +namespace Liip\Acme\Tests\DependencyInjection; use Liip\FunctionalTestBundle\Test\WebTestCase; diff --git a/tests/Test/WebTestCaseConfigLeanFrameworkTest.php b/tests/Test/WebTestCaseConfigLeanFrameworkTest.php index 99d888f2..342e2812 100644 --- a/tests/Test/WebTestCaseConfigLeanFrameworkTest.php +++ b/tests/Test/WebTestCaseConfigLeanFrameworkTest.php @@ -11,10 +11,10 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\Test; +namespace Liip\Acme\Tests\Test; use Liip\FunctionalTestBundle\Test\WebTestCase; -use Liip\FunctionalTestBundle\Tests\AppConfigLeanFramework\AppConfigLeanFrameworkKernel; +use Liip\Acme\Tests\AppConfigLeanFramework\AppConfigLeanFrameworkKernel; /** * Test Lean Framework - with validator component disabled. diff --git a/tests/Test/WebTestCaseConfigMysqlCacheDbTest.php b/tests/Test/WebTestCaseConfigMysqlCacheDbTest.php index a8f19ab7..1bfe4b6f 100644 --- a/tests/Test/WebTestCaseConfigMysqlCacheDbTest.php +++ b/tests/Test/WebTestCaseConfigMysqlCacheDbTest.php @@ -11,10 +11,10 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\Test; +namespace Liip\Acme\Tests\Test; use Doctrine\Common\Annotations\Annotation\IgnoreAnnotation; -use Liip\FunctionalTestBundle\Tests\AppConfigMysqlCacheDb\AppConfigMysqlKernelCacheDb; +use Liip\Acme\Tests\AppConfigMysqlCacheDb\AppConfigMysqlKernelCacheDb; /** * Test MySQL database with database caching enabled. @@ -47,7 +47,7 @@ protected static function getKernelClass(): string public function testLoadFixturesAndCheckBackup(): void { $this->loadFixtures([ - 'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadUserData', + 'Liip\Acme\Tests\App\DataFixtures\ORM\LoadUserData', ]); // Load data from database @@ -63,7 +63,7 @@ public function testLoadFixturesAndCheckBackup(): void $users ); - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user1 */ + /** @var \Liip\Acme\Tests\App\Entity\User $user1 */ $user1 = $em->getRepository('LiipFunctionalTestBundle:User') ->findOneBy([ 'id' => 1, @@ -95,7 +95,7 @@ public function testLoadFixturesAndCheckBackup(): void // Load fixtures again $this->loadFixtures([ - 'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadUserData', + 'Liip\Acme\Tests\App\DataFixtures\ORM\LoadUserData', ]); $users = $em->getRepository('LiipFunctionalTestBundle:User') diff --git a/tests/Test/WebTestCaseConfigMysqlTest.php b/tests/Test/WebTestCaseConfigMysqlTest.php index a3d08318..9720a18a 100644 --- a/tests/Test/WebTestCaseConfigMysqlTest.php +++ b/tests/Test/WebTestCaseConfigMysqlTest.php @@ -11,12 +11,12 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\Test; +namespace Liip\Acme\Tests\Test; use Doctrine\Common\Annotations\Annotation\IgnoreAnnotation; use Doctrine\Common\DataFixtures\Purger\ORMPurger; use Liip\FunctionalTestBundle\Test\WebTestCase; -use Liip\FunctionalTestBundle\Tests\AppConfigMysql\AppConfigMysqlKernel; +use Liip\Acme\Tests\AppConfigMysql\AppConfigMysqlKernel; /** * Test MySQL database. @@ -64,7 +64,7 @@ public function testLoadEmptyFixtures(): void public function testLoadFixtures(): void { $fixtures = $this->loadFixtures([ - 'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadUserData', + 'Liip\Acme\Tests\App\DataFixtures\ORM\LoadUserData', ]); $this->assertInstanceOf( @@ -90,7 +90,7 @@ public function testLoadFixtures(): void $em = $this->getContainer() ->get('doctrine.orm.entity_manager'); - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */ + /** @var \Liip\Acme\Tests\App\Entity\User $user */ $user = $em->getRepository('LiipFunctionalTestBundle:User') ->findOneBy([ 'id' => 1, @@ -112,11 +112,11 @@ public function testLoadFixtures(): void public function testAppendFixtures(): void { $this->loadFixtures([ - 'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadUserData', + 'Liip\Acme\Tests\App\DataFixtures\ORM\LoadUserData', ]); $this->loadFixtures( - ['Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadSecondUserData'], + ['Liip\Acme\Tests\App\DataFixtures\ORM\LoadSecondUserData'], true ); @@ -133,7 +133,7 @@ public function testAppendFixtures(): void $users ); - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */ + /** @var \Liip\Acme\Tests\App\Entity\User $user */ $user1 = $em->getRepository('LiipFunctionalTestBundle:User') ->findOneBy([ 'id' => 1, @@ -150,7 +150,7 @@ public function testAppendFixtures(): void $user1->getEnabled() ); - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */ + /** @var \Liip\Acme\Tests\App\Entity\User $user */ $user3 = $em->getRepository('LiipFunctionalTestBundle:User') ->findOneBy([ 'id' => 3, @@ -179,7 +179,7 @@ public function testAppendFixtures(): void public function testLoadFixturesAndExcludeFromPurge(): void { $fixtures = $this->loadFixtures([ - 'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadUserData', + 'Liip\Acme\Tests\App\DataFixtures\ORM\LoadUserData', ]); $this->assertInstanceOf( @@ -219,7 +219,7 @@ public function testLoadFixturesAndExcludeFromPurge(): void public function testLoadFixturesAndPurge(): void { $fixtures = $this->loadFixtures([ - 'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadUserData', + 'Liip\Acme\Tests\App\DataFixtures\ORM\LoadUserData', ]); $this->assertInstanceOf( @@ -252,7 +252,7 @@ public function testLoadFixturesAndPurge(): void // Reload fixtures $this->loadFixtures([ - 'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadUserData', + 'Liip\Acme\Tests\App\DataFixtures\ORM\LoadUserData', ]); $users = $em->getRepository('LiipFunctionalTestBundle:User') @@ -307,7 +307,7 @@ public function testLoadFixturesFiles(): void count($users) ); - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */ + /** @var \Liip\Acme\Tests\App\Entity\User $user */ $user = $em->getRepository('LiipFunctionalTestBundle:User') ->findOneBy([ 'id' => 1, diff --git a/tests/Test/WebTestCaseConfigPhpcrTest.php b/tests/Test/WebTestCaseConfigPhpcrTest.php index 5b2e6b32..5ece8872 100644 --- a/tests/Test/WebTestCaseConfigPhpcrTest.php +++ b/tests/Test/WebTestCaseConfigPhpcrTest.php @@ -11,12 +11,12 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\Test; +namespace Liip\Acme\Tests\Test; use Doctrine\Bundle\PHPCRBundle\DoctrinePHPCRBundle; use Doctrine\ORM\Tools\SchemaTool; use Liip\FunctionalTestBundle\Test\WebTestCase; -use Liip\FunctionalTestBundle\Tests\AppConfigPhpcr\AppConfigPhpcrKernel; +use Liip\Acme\Tests\AppConfigPhpcr\AppConfigPhpcrKernel; /** * Test PHPCR. @@ -59,7 +59,7 @@ public function setUp(): void public function testLoadFixturesPhPCr(): void { $fixtures = $this->loadFixtures([ - 'Liip\FunctionalTestBundle\Tests\AppConfigPhpcr\DataFixtures\PHPCR\LoadTaskData', + 'Liip\Acme\Tests\AppConfigPhpcr\DataFixtures\PHPCR\LoadTaskData', ], false, null, 'doctrine_phpcr'); $this->assertInstanceOf( diff --git a/tests/Test/WebTestCaseConfigTest.php b/tests/Test/WebTestCaseConfigTest.php index 1583f0f7..529d2fe4 100644 --- a/tests/Test/WebTestCaseConfigTest.php +++ b/tests/Test/WebTestCaseConfigTest.php @@ -11,13 +11,13 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\Test; +namespace Liip\Acme\Tests\Test; use Doctrine\Common\Annotations\Annotation\IgnoreAnnotation; use Liip\FunctionalTestBundle\Annotations\DisableDatabaseCache; use Liip\FunctionalTestBundle\Annotations\QueryCount; use Liip\FunctionalTestBundle\Test\WebTestCase; -use Liip\FunctionalTestBundle\Tests\AppConfig\AppConfigKernel; +use Liip\Acme\Tests\AppConfig\AppConfigKernel; /** * Tests that configuration has been loaded and users can be logged in. @@ -113,7 +113,7 @@ public function testIndexAuthenticationTrue(): void public function testIndexAuthenticationLoginAs(): void { $fixtures = $this->loadFixtures([ - 'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadUserData', + 'Liip\Acme\Tests\App\DataFixtures\ORM\LoadUserData', ]); /** @var \Doctrine\Common\DataFixtures\ReferenceRepository $repository */ @@ -161,7 +161,7 @@ public function testIndexAuthenticationLoginAs(): void public function testAllowedQueriesExceededException(): void { $fixtures = $this->loadFixtures([ - 'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadUserData', + 'Liip\Acme\Tests\App\DataFixtures\ORM\LoadUserData', ]); /** @var \Doctrine\Common\DataFixtures\ReferenceRepository $repository */ @@ -192,7 +192,7 @@ public function testAllowedQueriesExceededException(): void public function testAnnotationAndException(): void { $this->loadFixtures([ - 'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadUserData', + 'Liip\Acme\Tests\App\DataFixtures\ORM\LoadUserData', ]); $this->client = static::makeClient(); @@ -224,7 +224,7 @@ public function testLoadFixturesFilesWithCustomProvider(): void $fixtures ); - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */ + /** @var \Liip\Acme\Tests\App\Entity\User $user */ $user = $fixtures['id1']; // The custom provider has not been used successfully. @@ -238,7 +238,7 @@ public function testLoadFixturesFilesWithCustomProvider(): void '@AcmeBundle/DataFixtures/ORM/user_with_custom_provider.yml', ]); - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */ + /** @var \Liip\Acme\Tests\App\Entity\User $user */ $user = $fixtures['id1']; // The custom provider "foo" has been loaded and used successfully. @@ -258,7 +258,7 @@ public function testCacheCanBeDisabled(): void $databaseFilePath = $this->getContainer()->getParameter('kernel.cache_dir').'/test_sqlite_'.$md5.'.db'; $fixtures = [ - 'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadDependentUserData', + 'Liip\Acme\Tests\App\DataFixtures\ORM\LoadDependentUserData', ]; $this->loadFixtures($fixtures); @@ -266,7 +266,7 @@ public function testCacheCanBeDisabled(): void // Load data from database $em = $this->getContainer()->get('doctrine.orm.entity_manager'); - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user1 */ + /** @var \Liip\Acme\Tests\App\Entity\User $user1 */ $user1 = $em->getRepository('LiipFunctionalTestBundle:User')->findOneBy(['id' => 1]); // Store random data, in order to check it after reloading fixtures. @@ -277,7 +277,7 @@ public function testCacheCanBeDisabled(): void // Reload the fixtures. $this->loadFixtures($fixtures); - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user1 */ + /** @var \Liip\Acme\Tests\App\Entity\User $user1 */ $user1 = $em->getRepository('LiipFunctionalTestBundle:User')->findOneBy(['id' => 1]); //The salt are not the same because cache were not used @@ -290,10 +290,10 @@ public function testCacheCanBeDisabled(): void public function testBackupIsRefreshed(): void { // MD5 hash corresponding to these fixtures files. - $md5 = '0ded9d8daaeaeca1056b18b9d0d433b2'; + $md5 = '779547fe76503b90075f8d15c74a28be'; $fixtures = [ - 'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadDependentUserData', + 'Liip\Acme\Tests\App\DataFixtures\ORM\LoadDependentUserData', ]; $this->loadFixtures($fixtures); @@ -301,7 +301,7 @@ public function testBackupIsRefreshed(): void // Load data from database $em = $this->getContainer()->get('doctrine.orm.entity_manager'); - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user1 */ + /** @var \Liip\Acme\Tests\App\Entity\User $user1 */ $user1 = $em->getRepository('LiipFunctionalTestBundle:User') ->findOneBy(['id' => 1]); diff --git a/tests/Test/WebTestCaseTest.php b/tests/Test/WebTestCaseTest.php index ebe6b22c..09ac23c3 100644 --- a/tests/Test/WebTestCaseTest.php +++ b/tests/Test/WebTestCaseTest.php @@ -11,12 +11,12 @@ * with this source code in the file LICENSE. */ -namespace Liip\FunctionalTestBundle\Tests\Test; +namespace Liip\Acme\Tests\Test; use Doctrine\Common\Annotations\Annotation\IgnoreAnnotation; use Doctrine\Common\DataFixtures\Purger\ORMPurger; use Liip\FunctionalTestBundle\Test\WebTestCase; -use Liip\FunctionalTestBundle\Tests\App\AppKernel; +use Liip\Acme\Tests\App\AppKernel; use PHPUnit\Framework\AssertionFailedError; /** @@ -305,7 +305,7 @@ public function testLoadFixturesWithoutParameters(): void public function testLoadFixtures(): void { $fixtures = $this->loadFixtures([ - 'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadUserData', + 'Liip\Acme\Tests\App\DataFixtures\ORM\LoadUserData', ]); $this->assertInstanceOf( @@ -320,7 +320,7 @@ public function testLoadFixtures(): void $repository ); - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user1 */ + /** @var \Liip\Acme\Tests\App\Entity\User $user1 */ $user1 = $repository->getReference('user'); $this->assertSame(1, $user1->getId()); @@ -341,7 +341,7 @@ public function testLoadFixtures(): void count($users) ); - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */ + /** @var \Liip\Acme\Tests\App\Entity\User $user */ $user = $em->getRepository('LiipFunctionalTestBundle:User') ->findOneBy([ 'id' => 1, @@ -360,11 +360,11 @@ public function testLoadFixtures(): void public function testAppendFixtures(): void { $this->loadFixtures([ - 'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadUserData', + 'Liip\Acme\Tests\App\DataFixtures\ORM\LoadUserData', ]); $this->loadFixtures( - ['Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadSecondUserData'], + ['Liip\Acme\Tests\App\DataFixtures\ORM\LoadSecondUserData'], true ); @@ -372,7 +372,7 @@ public function testAppendFixtures(): void $em = $this->getContainer() ->get('doctrine.orm.entity_manager'); - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */ + /** @var \Liip\Acme\Tests\App\Entity\User $user */ $user = $em->getRepository('LiipFunctionalTestBundle:User') ->findOneBy([ 'id' => 1, @@ -387,7 +387,7 @@ public function testAppendFixtures(): void $user->getEnabled() ); - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */ + /** @var \Liip\Acme\Tests\App\Entity\User $user */ $user = $em->getRepository('LiipFunctionalTestBundle:User') ->findOneBy([ 'id' => 3, @@ -409,7 +409,7 @@ public function testAppendFixtures(): void public function testLoadDependentFixtures(): void { $fixtures = $this->loadFixtures([ - 'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadDependentUserData', + 'Liip\Acme\Tests\App\DataFixtures\ORM\LoadDependentUserData', ]); $this->assertInstanceOf( @@ -436,7 +436,7 @@ public function testLoadDependentFixtures(): void public function testLoadDependentFixturesWithDependencyInjected(): void { $fixtures = $this->loadFixtures([ - 'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadDependentUserWithServiceData', + 'Liip\Acme\Tests\App\DataFixtures\ORM\LoadDependentUserWithServiceData', ]); $this->assertInstanceOf( @@ -488,7 +488,7 @@ public function testLoadFixturesFiles(): void count($users) ); - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */ + /** @var \Liip\Acme\Tests\App\Entity\User $user */ $user = $em->getRepository('LiipFunctionalTestBundle:User') ->findOneBy([ 'id' => 1, @@ -543,7 +543,7 @@ public function testLoadFixturesFilesWithPurgeModeTruncate(): void ); $id = 1; - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */ + /** @var \Liip\Acme\Tests\App\Entity\User $user */ foreach ($fixtures as $user) { $this->assertSame($id++, $user->getId()); } @@ -571,7 +571,7 @@ public function testLoadFixturesFilesPaths(): void $fixtures ); - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user1 */ + /** @var \Liip\Acme\Tests\App\Entity\User $user1 */ $user1 = $fixtures['id1']; $this->assertInternalType('string', $user1->getUsername()); @@ -588,7 +588,7 @@ public function testLoadFixturesFilesPaths(): void count($users) ); - /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */ + /** @var \Liip\Acme\Tests\App\Entity\User $user */ $user = $em->getRepository('LiipFunctionalTestBundle:User') ->findOneBy([ 'id' => 1, @@ -645,7 +645,7 @@ public function testLoadNonexistentFixturesFilesPaths(): void public function testUserWithFixtures(): void { $fixtures = $this->loadFixtures([ - 'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadUserData', + 'Liip\Acme\Tests\App\DataFixtures\ORM\LoadUserData', ]); $this->assertInstanceOf(