Skip to content

Commit

Permalink
Cleanup localization test and setup (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz authored May 12, 2022
1 parent 20d7c82 commit bb397f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ use Rector\Sulu\Set\SuluLevelSetList;
use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->symfonyContainerXml(__DIR__ . '/var/cache/dev/App_KernelDevDebugContainer.xml');

$rectorConfig->sets([
SuluLevelSetList::UP_TO_SULU_24,
]);
Expand Down
8 changes: 6 additions & 2 deletions tests/Set/Sulu24/Fixture/localization.php.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class SomeClass {
namespace Sulu\Rector\Tests\Set\Sulu24\Fixture;

class SomeClassLocalization {
public function someMethod(\Sulu\Component\Localization\Localization $localization)
{
$localization->setXDefault('en');
Expand All @@ -13,7 +15,9 @@ class SomeClass {
-----
<?php

class SomeClass {
namespace Sulu\Rector\Tests\Set\Sulu24\Fixture;

class SomeClassLocalization {
public function someMethod(\Sulu\Component\Localization\Localization $localization)
{
$localization->setDefault('en');
Expand Down
2 changes: 1 addition & 1 deletion tests/Set/Sulu24/Sulu24Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Rector\Symfony\Tests\Set\Symfony43;
namespace Sulu\Rector\Tests\Set\Sulu24;

use Iterator;
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
Expand Down

0 comments on commit bb397f2

Please sign in to comment.