Skip to content

Commit

Permalink
Rename generator
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz committed Jan 10, 2024
1 parent b154ff8 commit d8acb20
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Cycle\Database\Schema\AbstractTable;
use Symfony\Component\Console\Output\OutputInterface;

final class ShowChanges implements GeneratorInterface
final class PrintChanges implements GeneratorInterface
{
private array $changes = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace Cycle\Schema\Tests\Driver\MySQL;

use Cycle\Schema\Tests\Generator\ShowChangesTest as BaseTest;
use Cycle\Schema\Tests\Generator\PrintChangesTest as BaseTest;

final class ShowChangesTest extends BaseTest
final class PrintChangesTest extends BaseTest
{
public const DRIVER = 'mysql';
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace Cycle\Schema\Tests\Driver\Postgres;

use Cycle\Schema\Tests\Generator\ShowChangesTest as BaseTest;
use Cycle\Schema\Tests\Generator\PrintChangesTest as BaseTest;

final class ShowChangesTest extends BaseTest
final class PrintChangesTest extends BaseTest
{
public const DRIVER = 'postgres';
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace Cycle\Schema\Tests\Driver\SQLServer;

use Cycle\Schema\Tests\Generator\ShowChangesTest as BaseTest;
use Cycle\Schema\Tests\Generator\PrintChangesTest as BaseTest;

final class ShowChangesTest extends BaseTest
final class PrintChangesTest extends BaseTest
{
public const DRIVER = 'sqlserver';
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace Cycle\Schema\Tests\Driver\SQLite;

use Cycle\Schema\Tests\Generator\ShowChangesTest as BaseTest;
use Cycle\Schema\Tests\Generator\PrintChangesTest as BaseTest;

final class ShowChangesTest extends BaseTest
final class PrintChangesTest extends BaseTest
{
public const DRIVER = 'sqlite';
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
use Cycle\Schema\Definition\Entity;
use Cycle\Schema\Generator\RenderTables;
use Cycle\Schema\Tests\BaseTest;
use Cycle\Schema\Generator\ShowChanges;
use Cycle\Schema\Generator\PrintChanges;
use Cycle\Schema\Registry;
use Cycle\Schema\Tests\Fixtures\User;
use Symfony\Component\Console\Output\BufferedOutput;

abstract class ShowChangesTest extends BaseTest
abstract class PrintChangesTest extends BaseTest
{
private BufferedOutput $output;
private Entity $user;
private Registry $registry;
private ShowChanges $generator;
private PrintChanges $generator;
private Compiler $compiler;

public function setUp(): void
Expand All @@ -33,7 +33,7 @@ public function setUp(): void
$this->registry->register($this->user);
$this->registry->linkTable($this->user, 'default', 'users');

$this->generator = new ShowChanges($this->output);
$this->generator = new PrintChanges($this->output);

$this->compiler = new Compiler();
}
Expand Down

0 comments on commit d8acb20

Please sign in to comment.