Skip to content

Commit 0cb6e89

Browse files
author
Hendrik Knigge
committed
Change DoctrineOrmLoadDataFixturesCommand to DoctrineOdmLoadDataFixturesCommand
1 parent a480155 commit 0cb6e89

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

resources/config/command.xml

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

66
<services>
77
<service id="hautelook_alice.console.command.doctrine.doctrine_orm_load_data_fixtures_command"
8-
class="Hautelook\AliceBundle\Console\Command\Doctrine\DoctrineOrmLoadDataFixturesCommand"
8+
class="Hautelook\AliceBundle\Console\Command\Doctrine\DoctrineOdmLoadDataFixturesCommand"
99
public="true">
1010
<argument type="string">hautelook:fixtures:load</argument>
1111
<argument type="service" id="doctrine" />

src/Console/Command/Doctrine/DoctrineOrmLoadDataFixturesCommand.php renamed to src/Console/Command/Doctrine/DoctrineOdmLoadDataFixturesCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Hautelook\AliceBundle\Console\Command\Doctrine;
1313

1414
use Doctrine\Common\Persistence\ManagerRegistry;
15-
use Hautelook\AliceBundle\LoaderInterface as AliceBundleLoaderInterface;
15+
use Hautelook\AliceBundle\Loader\DoctrineOdmLoader as AliceBundleLoaderInterface;
1616
use RuntimeException;
1717
use Symfony\Bundle\FrameworkBundle\Console\Application as FrameworkBundleConsoleApplication;
1818
use Symfony\Component\Console\Application as ConsoleApplication;
@@ -26,7 +26,7 @@
2626
/**
2727
* Command used to load the fixtures.
2828
*/
29-
class DoctrineOrmLoadDataFixturesCommand extends Command
29+
class DoctrineOdmLoadDataFixturesCommand extends Command
3030
{
3131
/**
3232
* @var ManagerRegistry

tests/Console/Command/Doctrine/LoadDataFixturesCommandIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class LoadDataFixturesCommandIntegrationTest extends TestCase
3939
private $kernel;
4040

4141
/**
42-
* @var DoctrineOrmLoadDataFixturesCommand
42+
* @var DoctrineOdmLoadDataFixturesCommand
4343
*/
4444
private $command;
4545

tests/Console/Command/Doctrine/LoadDataFixturesCommandTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,28 @@
2727
use Symfony\Component\Console\Output\NullOutput;
2828

2929
/**
30-
* @covers \Hautelook\AliceBundle\Console\Command\Doctrine\DoctrineOrmLoadDataFixturesCommand
30+
* @covers \Hautelook\AliceBundle\Console\Command\Doctrine\DoctrineOdmLoadDataFixturesCommand
3131
*/
3232
class LoadDataFixturesCommandTest extends TestCase
3333
{
3434
public function testIsACommand()
3535
{
36-
$this->assertTrue(is_a(DoctrineOrmLoadDataFixturesCommand::class, Command::class, true));
36+
$this->assertTrue(is_a(DoctrineOdmLoadDataFixturesCommand::class, Command::class, true));
3737
}
3838

3939
public function testCanSetTheCommandApplication()
4040
{
4141
$application = new FrameworkBundleConsoleApplication(new DummyKernel());
4242

43-
$command = new DoctrineOrmLoadDataFixturesCommand('dummy', new FakeDoctrineManagerRegistry(), new FakeLoader());
43+
$command = new DoctrineOdmLoadDataFixturesCommand('dummy', new FakeDoctrineManagerRegistry(), new FakeLoader());
4444
$command->setApplication($application);
4545

4646
$this->assertSame($application, $command->getApplication());
4747
}
4848

4949
public function testCanResetTheCommandApplication()
5050
{
51-
$command = new DoctrineOrmLoadDataFixturesCommand('dummy', new FakeDoctrineManagerRegistry(), new FakeLoader());
51+
$command = new DoctrineOdmLoadDataFixturesCommand('dummy', new FakeDoctrineManagerRegistry(), new FakeLoader());
5252
$command->setApplication(null);
5353

5454
$this->assertTrue(true);
@@ -60,7 +60,7 @@ public function testCanResetTheCommandApplication()
6060
*/
6161
public function testThrowsAnExceptionIfInvalidApplicationIsGiven()
6262
{
63-
$command = new DoctrineOrmLoadDataFixturesCommand('dummy', new FakeDoctrineManagerRegistry(), new FakeLoader());
63+
$command = new DoctrineOdmLoadDataFixturesCommand('dummy', new FakeDoctrineManagerRegistry(), new FakeLoader());
6464
$command->setApplication(new ConsoleApplication());
6565
}
6666

@@ -89,7 +89,7 @@ public function testCallCommandWithoutArguments()
8989
/** @var LoaderInterface $loader */
9090
$loader = $loaderProphecy->reveal();
9191

92-
$command = new DoctrineOrmLoadDataFixturesCommand('dummy', $managerRegistry, $loader);
92+
$command = new DoctrineOdmLoadDataFixturesCommand('dummy', $managerRegistry, $loader);
9393
$command->setApplication($application);
9494
$exit = $command->run($input, new NullOutput());
9595

@@ -132,7 +132,7 @@ public function testCallCommandWithArguments()
132132
/** @var LoaderInterface $loader */
133133
$loader = $loaderProphecy->reveal();
134134

135-
$command = new DoctrineOrmLoadDataFixturesCommand('dummy', $managerRegistry, $loader);
135+
$command = new DoctrineOdmLoadDataFixturesCommand('dummy', $managerRegistry, $loader);
136136
$command->setApplication($application);
137137
$exit = $command->run($input, new NullOutput());
138138

tests/DependencyInjection/HautelookAliceBundleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function testServiceRegistration()
128128

129129
// Commands
130130
$this->assertInstanceOf(
131-
\Hautelook\AliceBundle\Console\Command\Doctrine\DoctrineOrmLoadDataFixturesCommand::class,
131+
\Hautelook\AliceBundle\Console\Command\Doctrine\DoctrineOdmLoadDataFixturesCommand::class,
132132
$this->kernel->getContainer()->get('hautelook_alice.console.command.doctrine.doctrine_orm_load_data_fixtures_command')
133133
);
134134
}

0 commit comments

Comments
 (0)