Skip to content

Commit e2df324

Browse files
committed
minor #262 Renaming Fixture/ -> Fixtures/ (weaverryan)
This PR was merged into the 2.x branch. Discussion ---------- Renaming Fixture/ -> Fixtures/ | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Tickets | None | License | MIT Minor: "Fixtures" is more standard, and it's also already configured in the php-cs-fixer config: https://github.com/symfony/ux/blob/6715a03c844e988c1ab6337b0605f88f1fcfe879/.php-cs-fixer.dist.php#L25 Commits ------- 6772737 Renaming Fixture -> Fixtures
2 parents 96c4ba0 + 6772737 commit e2df324

40 files changed

+61
-61
lines changed

src/LiveComponent/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
>
1111
<php>
1212
<ini name="error_reporting" value="-1" />
13-
<server name="KERNEL_CLASS" value="Symfony\UX\LiveComponent\Tests\Fixture\Kernel" />
13+
<server name="KERNEL_CLASS" value="Symfony\UX\LiveComponent\Tests\Fixtures\Kernel" />
1414
<server name="DATABASE_URL" value="sqlite:///%kernel.project_dir%/var/data.db" />
1515
<env name="SHELL_VERBOSITY" value="-1"/>
1616
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>

src/LiveComponent/tests/Fixture/Component/Component1.php renamed to src/LiveComponent/tests/Fixtures/Component/Component1.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\UX\LiveComponent\Tests\Fixture\Component;
12+
namespace Symfony\UX\LiveComponent\Tests\Fixtures\Component;
1313

1414
use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
1515
use Symfony\UX\LiveComponent\Attribute\LiveAction;
1616
use Symfony\UX\LiveComponent\Attribute\LiveProp;
1717
use Symfony\UX\LiveComponent\DefaultActionTrait;
18-
use Symfony\UX\LiveComponent\Tests\Fixture\Entity\Entity1;
18+
use Symfony\UX\LiveComponent\Tests\Fixtures\Entity\Entity1;
1919

2020
/**
2121
* @author Kevin Bond <[email protected]>

src/LiveComponent/tests/Fixture/Component/Component2.php renamed to src/LiveComponent/tests/Fixtures/Component/Component2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\UX\LiveComponent\Tests\Fixture\Component;
12+
namespace Symfony\UX\LiveComponent\Tests\Fixtures\Component;
1313

1414
use Symfony\Component\HttpFoundation\RedirectResponse;
1515
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;

src/LiveComponent/tests/Fixture/Component/Component3.php renamed to src/LiveComponent/tests/Fixtures/Component/Component3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\UX\LiveComponent\Tests\Fixture\Component;
12+
namespace Symfony\UX\LiveComponent\Tests\Fixtures\Component;
1313

1414
use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
1515
use Symfony\UX\LiveComponent\Attribute\LiveProp;

src/LiveComponent/tests/Fixture/Component/Component4.php renamed to src/LiveComponent/tests/Fixtures/Component/Component4.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\UX\LiveComponent\Tests\Fixture\Component;
12+
namespace Symfony\UX\LiveComponent\Tests\Fixtures\Component;
1313

1414
use Symfony\UX\LiveComponent\Attribute\BeforeReRender;
1515
use Symfony\UX\LiveComponent\Attribute\LiveAction;

src/LiveComponent/tests/Fixture/Component/Component5.php renamed to src/LiveComponent/tests/Fixtures/Component/Component5.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\UX\LiveComponent\Tests\Fixture\Component;
12+
namespace Symfony\UX\LiveComponent\Tests\Fixtures\Component;
1313

1414
use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
1515
use Symfony\UX\LiveComponent\DefaultActionTrait;

src/LiveComponent/tests/Fixture/Component/Component6.php renamed to src/LiveComponent/tests/Fixtures/Component/Component6.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\UX\LiveComponent\Tests\Fixture\Component;
12+
namespace Symfony\UX\LiveComponent\Tests\Fixtures\Component;
1313

1414
use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
1515
use Symfony\UX\LiveComponent\Attribute\LiveAction;

src/LiveComponent/tests/Fixture/Component/ComponentWithAttributes.php renamed to src/LiveComponent/tests/Fixtures/Component/ComponentWithAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Symfony\UX\LiveComponent\Tests\Fixture\Component;
3+
namespace Symfony\UX\LiveComponent\Tests\Fixtures\Component;
44

55
use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
66
use Symfony\UX\LiveComponent\DefaultActionTrait;

src/LiveComponent/tests/Fixture/Component/FormWithCollectionTypeComponent.php renamed to src/LiveComponent/tests/Fixtures/Component/FormWithCollectionTypeComponent.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\UX\LiveComponent\Tests\Fixture\Component;
12+
namespace Symfony\UX\LiveComponent\Tests\Fixtures\Component;
1313

1414
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1515
use Symfony\Component\Form\FormInterface;
@@ -18,9 +18,9 @@
1818
use Symfony\UX\LiveComponent\Attribute\LiveArg;
1919
use Symfony\UX\LiveComponent\ComponentWithFormTrait;
2020
use Symfony\UX\LiveComponent\DefaultActionTrait;
21-
use Symfony\UX\LiveComponent\Tests\Fixture\Dto\BlogPost;
22-
use Symfony\UX\LiveComponent\Tests\Fixture\Dto\Comment;
23-
use Symfony\UX\LiveComponent\Tests\Fixture\Form\BlogPostFormType;
21+
use Symfony\UX\LiveComponent\Tests\Fixtures\Dto\BlogPost;
22+
use Symfony\UX\LiveComponent\Tests\Fixtures\Dto\Comment;
23+
use Symfony\UX\LiveComponent\Tests\Fixtures\Form\BlogPostFormType;
2424

2525
#[AsLiveComponent('form_with_collection_type')]
2626
class FormWithCollectionTypeComponent extends AbstractController

src/LiveComponent/tests/Fixture/Dto/BlogPost.php renamed to src/LiveComponent/tests/Fixtures/Dto/BlogPost.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\UX\LiveComponent\Tests\Fixture\Dto;
12+
namespace Symfony\UX\LiveComponent\Tests\Fixtures\Dto;
1313

1414
use Symfony\Component\Validator\Constraints\Length;
1515
use Symfony\Component\Validator\Constraints\NotBlank;

src/LiveComponent/tests/Fixture/Dto/Comment.php renamed to src/LiveComponent/tests/Fixtures/Dto/Comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\UX\LiveComponent\Tests\Fixture\Dto;
12+
namespace Symfony\UX\LiveComponent\Tests\Fixtures\Dto;
1313

1414
class Comment
1515
{

src/LiveComponent/tests/Fixture/Entity/Entity1.php renamed to src/LiveComponent/tests/Fixtures/Entity/Entity1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\UX\LiveComponent\Tests\Fixture\Entity;
12+
namespace Symfony\UX\LiveComponent\Tests\Fixtures\Entity;
1313

1414
use Doctrine\ORM\Mapping as ORM;
1515

src/LiveComponent/tests/Fixture/Form/BlogPostFormType.php renamed to src/LiveComponent/tests/Fixtures/Form/BlogPostFormType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111

1212
declare(strict_types=1);
1313

14-
namespace Symfony\UX\LiveComponent\Tests\Fixture\Form;
14+
namespace Symfony\UX\LiveComponent\Tests\Fixtures\Form;
1515

1616
use Symfony\Component\Form\AbstractType;
1717
use Symfony\Component\Form\Extension\Core\Type\CollectionType;
1818
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
1919
use Symfony\Component\Form\Extension\Core\Type\TextType;
2020
use Symfony\Component\Form\FormBuilderInterface;
2121
use Symfony\Component\OptionsResolver\OptionsResolver;
22-
use Symfony\UX\LiveComponent\Tests\Fixture\Dto\BlogPost;
22+
use Symfony\UX\LiveComponent\Tests\Fixtures\Dto\BlogPost;
2323

2424
class BlogPostFormType extends AbstractType
2525
{

src/LiveComponent/tests/Fixture/Form/CommentFormType.php renamed to src/LiveComponent/tests/Fixtures/Form/CommentFormType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
declare(strict_types=1);
1313

14-
namespace Symfony\UX\LiveComponent\Tests\Fixture\Form;
14+
namespace Symfony\UX\LiveComponent\Tests\Fixtures\Form;
1515

1616
use Symfony\Component\Form\AbstractType;
1717
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
1818
use Symfony\Component\Form\FormBuilderInterface;
1919
use Symfony\Component\OptionsResolver\OptionsResolver;
20-
use Symfony\UX\LiveComponent\Tests\Fixture\Dto\Comment;
20+
use Symfony\UX\LiveComponent\Tests\Fixtures\Dto\Comment;
2121

2222
class CommentFormType extends AbstractType
2323
{

src/LiveComponent/tests/Fixture/Kernel.php renamed to src/LiveComponent/tests/Fixtures/Kernel.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\UX\LiveComponent\Tests\Fixture;
12+
namespace Symfony\UX\LiveComponent\Tests\Fixtures;
1313

1414
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
1515
use Psr\Log\NullLogger;
@@ -22,12 +22,12 @@
2222
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
2323
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
2424
use Symfony\UX\LiveComponent\LiveComponentBundle;
25-
use Symfony\UX\LiveComponent\Tests\Fixture\Component\Component1;
26-
use Symfony\UX\LiveComponent\Tests\Fixture\Component\Component2;
27-
use Symfony\UX\LiveComponent\Tests\Fixture\Component\Component3;
28-
use Symfony\UX\LiveComponent\Tests\Fixture\Component\Component6;
29-
use Symfony\UX\LiveComponent\Tests\Fixture\Component\ComponentWithAttributes;
30-
use Symfony\UX\LiveComponent\Tests\Fixture\Component\FormWithCollectionTypeComponent;
25+
use Symfony\UX\LiveComponent\Tests\Fixtures\Component\Component1;
26+
use Symfony\UX\LiveComponent\Tests\Fixtures\Component\Component2;
27+
use Symfony\UX\LiveComponent\Tests\Fixtures\Component\Component3;
28+
use Symfony\UX\LiveComponent\Tests\Fixtures\Component\Component6;
29+
use Symfony\UX\LiveComponent\Tests\Fixtures\Component\ComponentWithAttributes;
30+
use Symfony\UX\LiveComponent\Tests\Fixtures\Component\FormWithCollectionTypeComponent;
3131
use Symfony\UX\TwigComponent\TwigComponentBundle;
3232
use Twig\Environment;
3333

@@ -80,7 +80,7 @@ protected function configureContainer(ContainerBuilder $c, LoaderInterface $load
8080
]);
8181

8282
$c->loadFromExtension('twig', [
83-
'default_path' => '%kernel.project_dir%/tests/Fixture/templates',
83+
'default_path' => '%kernel.project_dir%/tests/Fixtures/templates',
8484
]);
8585

8686
$c->loadFromExtension('doctrine', [
@@ -92,8 +92,8 @@ protected function configureContainer(ContainerBuilder $c, LoaderInterface $load
9292
'Test' => [
9393
'is_bundle' => false,
9494
'type' => 'annotation',
95-
'dir' => '%kernel.project_dir%/tests/Fixture/Entity',
96-
'prefix' => 'Symfony\UX\LiveComponent\Tests\Fixture\Entity',
95+
'dir' => '%kernel.project_dir%/tests/Fixtures/Entity',
96+
'prefix' => 'Symfony\UX\LiveComponent\Tests\Fixtures\Entity',
9797
'alias' => 'Test',
9898
],
9999
],

src/LiveComponent/tests/Functional/EventListener/LiveComponentSubscriberTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
1515
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
1616
use Symfony\UX\LiveComponent\LiveComponentHydrator;
17-
use Symfony\UX\LiveComponent\Tests\Fixture\Component\Component1;
18-
use Symfony\UX\LiveComponent\Tests\Fixture\Component\Component2;
19-
use Symfony\UX\LiveComponent\Tests\Fixture\Component\Component6;
20-
use Symfony\UX\LiveComponent\Tests\Fixture\Entity\Entity1;
17+
use Symfony\UX\LiveComponent\Tests\Fixtures\Component\Component1;
18+
use Symfony\UX\LiveComponent\Tests\Fixtures\Component\Component2;
19+
use Symfony\UX\LiveComponent\Tests\Fixtures\Component\Component6;
20+
use Symfony\UX\LiveComponent\Tests\Fixtures\Entity\Entity1;
2121
use Symfony\UX\TwigComponent\ComponentFactory;
2222
use Zenstruck\Browser\Response\HtmlResponse;
2323
use Zenstruck\Browser\Test\HasBrowser;

src/LiveComponent/tests/Functional/Form/ComponentWithFormTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
use Symfony\Component\DomCrawler\Crawler;
1818
use Symfony\Component\Form\FormFactoryInterface;
1919
use Symfony\UX\LiveComponent\LiveComponentHydrator;
20-
use Symfony\UX\LiveComponent\Tests\Fixture\Component\FormWithCollectionTypeComponent;
21-
use Symfony\UX\LiveComponent\Tests\Fixture\Form\BlogPostFormType;
20+
use Symfony\UX\LiveComponent\Tests\Fixtures\Component\FormWithCollectionTypeComponent;
21+
use Symfony\UX\LiveComponent\Tests\Fixtures\Form\BlogPostFormType;
2222
use Symfony\UX\TwigComponent\ComponentFactory;
2323
use Zenstruck\Browser\Response\HtmlResponse;
2424
use Zenstruck\Browser\Test\HasBrowser;

src/LiveComponent/tests/Integration/LiveComponentHydratorTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
1515
use Symfony\UX\LiveComponent\Attribute\LiveProp;
1616
use Symfony\UX\LiveComponent\LiveComponentHydrator;
17-
use Symfony\UX\LiveComponent\Tests\Fixture\Component\Component1;
18-
use Symfony\UX\LiveComponent\Tests\Fixture\Component\Component2;
19-
use Symfony\UX\LiveComponent\Tests\Fixture\Component\Component3;
20-
use Symfony\UX\LiveComponent\Tests\Fixture\Component\ComponentWithAttributes;
21-
use Symfony\UX\LiveComponent\Tests\Fixture\Entity\Entity1;
17+
use Symfony\UX\LiveComponent\Tests\Fixtures\Component\Component1;
18+
use Symfony\UX\LiveComponent\Tests\Fixtures\Component\Component2;
19+
use Symfony\UX\LiveComponent\Tests\Fixtures\Component\Component3;
20+
use Symfony\UX\LiveComponent\Tests\Fixtures\Component\ComponentWithAttributes;
21+
use Symfony\UX\LiveComponent\Tests\Fixtures\Entity\Entity1;
2222
use Symfony\UX\TwigComponent\ComponentFactory;
2323
use function Zenstruck\Foundry\create;
2424
use Zenstruck\Foundry\Test\Factories;

src/LiveComponent/tests/Unit/Attribute/AsLiveComponentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
16-
use Symfony\UX\LiveComponent\Tests\Fixture\Component\Component5;
16+
use Symfony\UX\LiveComponent\Tests\Fixtures\Component\Component5;
1717

1818
/**
1919
* @author Kevin Bond <[email protected]>

src/TwigComponent/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
>
1111
<php>
1212
<ini name="error_reporting" value="-1" />
13-
<server name="KERNEL_CLASS" value="Symfony\UX\TwigComponent\Tests\Fixture\Kernel" />
13+
<server name="KERNEL_CLASS" value="Symfony\UX\TwigComponent\Tests\Fixtures\Kernel" />
1414
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
1515
</php>
1616

src/TwigComponent/tests/Fixture/Component/ComponentA.php renamed to src/TwigComponent/tests/Fixtures/Component/ComponentA.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\UX\TwigComponent\Tests\Fixture\Component;
12+
namespace Symfony\UX\TwigComponent\Tests\Fixtures\Component;
1313

1414
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
15-
use Symfony\UX\TwigComponent\Tests\Fixture\Service\ServiceA;
15+
use Symfony\UX\TwigComponent\Tests\Fixtures\Service\ServiceA;
1616

1717
/**
1818
* @author Kevin Bond <[email protected]>

src/TwigComponent/tests/Fixture/Component/ComponentB.php renamed to src/TwigComponent/tests/Fixtures/Component/ComponentB.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\UX\TwigComponent\Tests\Fixture\Component;
12+
namespace Symfony\UX\TwigComponent\Tests\Fixtures\Component;
1313

1414
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
1515
use Symfony\UX\TwigComponent\Attribute\PostMount;

src/TwigComponent/tests/Fixture/Component/ComponentC.php renamed to src/TwigComponent/tests/Fixtures/Component/ComponentC.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\UX\TwigComponent\Tests\Fixture\Component;
12+
namespace Symfony\UX\TwigComponent\Tests\Fixtures\Component;
1313

1414
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
1515

src/TwigComponent/tests/Fixture/Component/WithAttributes.php renamed to src/TwigComponent/tests/Fixtures/Component/WithAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\UX\TwigComponent\Tests\Fixture\Component;
12+
namespace Symfony\UX\TwigComponent\Tests\Fixtures\Component;
1313

1414
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
1515
use Symfony\UX\TwigComponent\HasAttributesTrait;

src/TwigComponent/tests/Fixture/Kernel.php renamed to src/TwigComponent/tests/Fixtures/Kernel.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\UX\TwigComponent\Tests\Fixture;
12+
namespace Symfony\UX\TwigComponent\Tests\Fixtures;
1313

1414
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
1515
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
1616
use Symfony\Bundle\TwigBundle\TwigBundle;
1717
use Symfony\Component\Config\Loader\LoaderInterface;
1818
use Symfony\Component\DependencyInjection\ContainerBuilder;
1919
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
20-
use Symfony\UX\TwigComponent\Tests\Fixture\Component\ComponentA;
21-
use Symfony\UX\TwigComponent\Tests\Fixture\Component\ComponentB;
22-
use Symfony\UX\TwigComponent\Tests\Fixture\Component\ComponentC;
23-
use Symfony\UX\TwigComponent\Tests\Fixture\Component\WithAttributes;
24-
use Symfony\UX\TwigComponent\Tests\Fixture\Service\ServiceA;
20+
use Symfony\UX\TwigComponent\Tests\Fixtures\Component\ComponentA;
21+
use Symfony\UX\TwigComponent\Tests\Fixtures\Component\ComponentB;
22+
use Symfony\UX\TwigComponent\Tests\Fixtures\Component\ComponentC;
23+
use Symfony\UX\TwigComponent\Tests\Fixtures\Component\WithAttributes;
24+
use Symfony\UX\TwigComponent\Tests\Fixtures\Service\ServiceA;
2525
use Symfony\UX\TwigComponent\TwigComponentBundle;
2626

2727
/**
@@ -47,7 +47,7 @@ protected function configureContainer(ContainerBuilder $c, LoaderInterface $load
4747
'secrets' => false,
4848
]);
4949
$c->loadFromExtension('twig', [
50-
'default_path' => '%kernel.project_dir%/tests/Fixture/templates',
50+
'default_path' => '%kernel.project_dir%/tests/Fixtures/templates',
5151
]);
5252

5353
$c->register(ServiceA::class)->setAutoconfigured(true)->setAutowired(true);

src/TwigComponent/tests/Fixture/Service/ServiceA.php renamed to src/TwigComponent/tests/Fixtures/Service/ServiceA.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\UX\TwigComponent\Tests\Fixture\Service;
12+
namespace Symfony\UX\TwigComponent\Tests\Fixtures\Service;
1313

1414
/**
1515
* @author Kevin Bond <[email protected]>

src/TwigComponent/tests/Integration/ComponentFactoryTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
1515
use Symfony\Component\DependencyInjection\Exception\LogicException;
1616
use Symfony\UX\TwigComponent\ComponentFactory;
17-
use Symfony\UX\TwigComponent\Tests\Fixture\Component\ComponentA;
18-
use Symfony\UX\TwigComponent\Tests\Fixture\Component\ComponentB;
19-
use Symfony\UX\TwigComponent\Tests\Fixture\Component\ComponentC;
17+
use Symfony\UX\TwigComponent\Tests\Fixtures\Component\ComponentA;
18+
use Symfony\UX\TwigComponent\Tests\Fixtures\Component\ComponentB;
19+
use Symfony\UX\TwigComponent\Tests\Fixtures\Component\ComponentC;
2020

2121
/**
2222
* @author Kevin Bond <[email protected]>
@@ -100,7 +100,7 @@ public function testExceptionThrownIfRequiredMountParameterIsMissingFromPassedDa
100100
$factory = self::getContainer()->get('ux.twig_component.component_factory');
101101

102102
$this->expectException(\LogicException::class);
103-
$this->expectExceptionMessage('Symfony\UX\TwigComponent\Tests\Fixture\Component\ComponentC::mount() has a required $propA parameter. Make sure this is passed or make give a default value.');
103+
$this->expectExceptionMessage('Symfony\UX\TwigComponent\Tests\Fixtures\Component\ComponentC::mount() has a required $propA parameter. Make sure this is passed or make give a default value.');
104104

105105
$factory->create('component_c');
106106
}
@@ -111,7 +111,7 @@ public function testExceptionThrownIfUnableToWritePassedDataToProperty(): void
111111
$factory = self::getContainer()->get('ux.twig_component.component_factory');
112112

113113
$this->expectException(\LogicException::class);
114-
$this->expectExceptionMessage('Unable to write "service" to component "Symfony\UX\TwigComponent\Tests\Fixture\Component\ComponentA". Make sure this is a writable property or create a mount() with a $service argument.');
114+
$this->expectExceptionMessage('Unable to write "service" to component "Symfony\UX\TwigComponent\Tests\Fixtures\Component\ComponentA". Make sure this is a writable property or create a mount() with a $service argument.');
115115

116116
$factory->create('component_a', ['propB' => 'B', 'service' => 'invalid']);
117117
}

0 commit comments

Comments
 (0)