Skip to content

Commit 9919f34

Browse files
2.x: Use Acme namespace for internal tests
1 parent 0b05698 commit 9919f34

41 files changed

Lines changed: 118 additions & 118 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
},
4949
"autoload-dev": {
5050
"psr-4": {
51-
"Liip\\FunctionalTestBundle\\Tests\\": "tests/"
51+
"Liip\\Acme\\Tests\\": "tests/"
5252
}
5353
},
5454
"config": {

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
>
1111

1212
<php>
13-
<server name="KERNEL_CLASS" value="Liip\FunctionalTestBundle\Tests\App\AppKernel" />
13+
<server name="KERNEL_CLASS" value="Liip\Acme\Tests\App\AppKernel" />
1414
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>
1515
</php>
1616

tests/App/AcmeBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* with this source code in the file LICENSE.
1212
*/
1313

14-
namespace Liip\FunctionalTestBundle\Tests\App;
14+
namespace Liip\Acme\Tests\App;
1515

1616
use Symfony\Component\DependencyInjection\ContainerBuilder;
1717
use Symfony\Component\HttpKernel\Bundle\Bundle;

tests/App/AppKernel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* with this source code in the file LICENSE.
1212
*/
1313

14-
namespace Liip\FunctionalTestBundle\Tests\App;
14+
namespace Liip\Acme\Tests\App;
1515

1616
use Symfony\Component\Config\Loader\LoaderInterface;
1717
use Symfony\Component\DependencyInjection\ContainerBuilder;
@@ -29,7 +29,7 @@ public function registerBundles(): array
2929
new \Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
3030
new \Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
3131
new \Liip\FunctionalTestBundle\LiipFunctionalTestBundle(),
32-
new \Liip\FunctionalTestBundle\Tests\App\AcmeBundle(),
32+
new \Liip\Acme\Tests\App\AcmeBundle(),
3333
new \Nelmio\Alice\Bridge\Symfony\NelmioAliceBundle(),
3434
new \Fidry\AliceDataFixtures\Bridge\Symfony\FidryAliceDataFixturesBundle(),
3535
];

tests/App/Command/TestCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* with this source code in the file LICENSE.
1212
*/
1313

14-
namespace Liip\FunctionalTestBundle\Tests\App\Command;
14+
namespace Liip\Acme\Tests\App\Command;
1515

1616
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
1717
use Symfony\Component\Console\Input\InputInterface;

tests/App/Command/TestStatusCodeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* with this source code in the file LICENSE.
1212
*/
1313

14-
namespace Liip\FunctionalTestBundle\Tests\App\Command;
14+
namespace Liip\Acme\Tests\App\Command;
1515

1616
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
1717
use Symfony\Component\Console\Input\InputInterface;

tests/App/Controller/DefaultController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* with this source code in the file LICENSE.
1212
*/
1313

14-
namespace Liip\FunctionalTestBundle\Tests\App\Controller;
14+
namespace Liip\Acme\Tests\App\Controller;
1515

1616
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
1717
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
@@ -39,7 +39,7 @@ public function indexAction(): Response
3939
*/
4040
public function userAction(int $userId): Response
4141
{
42-
/** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */
42+
/** @var \Liip\Acme\Tests\App\Entity\User $user */
4343
$user = $this->getDoctrine()
4444
->getRepository('LiipFunctionalTestBundle:User')
4545
->find($userId);

tests/App/DataFixtures/ORM/LoadDependentUserData.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* with this source code in the file LICENSE.
1212
*/
1313

14-
namespace Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM;
14+
namespace Liip\Acme\Tests\App\DataFixtures\ORM;
1515

1616
use Doctrine\Common\DataFixtures\AbstractFixture;
1717
use Doctrine\Common\DataFixtures\DependentFixtureInterface;
@@ -38,7 +38,7 @@ public function setContainer(ContainerInterface $container = null): void
3838
*/
3939
public function load(ObjectManager $manager): void
4040
{
41-
/** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */
41+
/** @var \Liip\Acme\Tests\App\Entity\User $user */
4242
$user = clone $this->getReference('user');
4343

4444
$user->setId(3);
@@ -60,7 +60,7 @@ public function load(ObjectManager $manager): void
6060
public function getDependencies(): array
6161
{
6262
return [
63-
'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadUserData',
63+
'Liip\Acme\Tests\App\DataFixtures\ORM\LoadUserData',
6464
];
6565
}
6666
}

tests/App/DataFixtures/ORM/LoadDependentUserWithServiceData.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* with this source code in the file LICENSE.
1212
*/
1313

14-
namespace Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM;
14+
namespace Liip\Acme\Tests\App\DataFixtures\ORM;
1515

1616
use Doctrine\Common\DataFixtures\AbstractFixture;
1717
use Doctrine\Common\DataFixtures\DependentFixtureInterface;
@@ -38,7 +38,7 @@ public function setContainer(ContainerInterface $container = null): void
3838
*/
3939
public function load(ObjectManager $manager): void
4040
{
41-
/** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */
41+
/** @var \Liip\Acme\Tests\App\Entity\User $user */
4242
$user = clone $this->getReference('user');
4343

4444
$user->setId(3);
@@ -60,7 +60,7 @@ public function load(ObjectManager $manager): void
6060
public function getDependencies(): array
6161
{
6262
return [
63-
'Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM\LoadUserWithServiceData',
63+
'Liip\Acme\Tests\App\DataFixtures\ORM\LoadUserWithServiceData',
6464
];
6565
}
6666
}

tests/App/DataFixtures/ORM/LoadSecondUserData.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
* with this source code in the file LICENSE.
1212
*/
1313

14-
namespace Liip\FunctionalTestBundle\Tests\App\DataFixtures\ORM;
14+
namespace Liip\Acme\Tests\App\DataFixtures\ORM;
1515

1616
use Doctrine\Common\DataFixtures\AbstractFixture;
1717
use Doctrine\Common\DataFixtures\FixtureInterface;
1818
use Doctrine\Common\Persistence\ObjectManager;
19-
use Liip\FunctionalTestBundle\Tests\App\Entity\User;
19+
use Liip\Acme\Tests\App\Entity\User;
2020
use Symfony\Component\DependencyInjection\ContainerInterface;
2121

2222
class LoadSecondUserData extends AbstractFixture implements FixtureInterface
@@ -39,7 +39,7 @@ public function setContainer(ContainerInterface $container = null): void
3939
*/
4040
public function load(ObjectManager $manager): void
4141
{
42-
/** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */
42+
/** @var \Liip\Acme\Tests\App\Entity\User $user */
4343
$user = new User();
4444
$user->setName('bar foo');
4545
$user->setEmail('bar@foo.com');

0 commit comments

Comments
 (0)