Skip to content

Commit

Permalink
Fixed units
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-karkus committed Nov 29, 2024
1 parent c012bc4 commit 85c4648
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions tests/Generator/SqlGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Doctrine\Migrations\Tests\Generator;
namespace Fundrbird\Tests\Unit;

use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Platforms\SQLitePlatform;
Expand All @@ -11,6 +11,7 @@
use Doctrine\Migrations\Metadata\Storage\TableMetadataStorageConfiguration;
use Doctrine\SqlFormatter\NullHighlighter;
use Doctrine\SqlFormatter\SqlFormatter;
use PHPUnit\Event\Runtime\PHP;
use PHPUnit\Framework\TestCase;

use function class_exists;
Expand Down Expand Up @@ -47,7 +48,7 @@ public function testGenerate(): void
!\$this->connection->getDatabasePlatform() instanceof \\$expectedPlatform,
"Migration can only be executed safely on '\\$expectedPlatform'."
);
\$this->addSql(<<<'SQL'
SELECT 1
SQL);
Expand Down Expand Up @@ -137,7 +138,13 @@ private function prepareGeneratedCode(string $expectedCode): string

return sprintf(
$expectedCode,
(new SqlFormatter(new NullHighlighter()))->format($this->sql[2]),
implode(
PHP_EOL . str_repeat(' ', 4),
explode(
PHP_EOL,
(new SqlFormatter(new NullHighlighter()))->format($this->sql[2]),
),
),
);
}
}

0 comments on commit 85c4648

Please sign in to comment.