27
27
use Symfony \Component \Console \Output \NullOutput ;
28
28
29
29
/**
30
- * @covers \Hautelook\AliceBundle\Console\Command\Doctrine\DoctrineOrmLoadDataFixturesCommand
30
+ * @covers \Hautelook\AliceBundle\Console\Command\Doctrine\DoctrineOdmLoadDataFixturesCommand
31
31
*/
32
32
class LoadDataFixturesCommandTest extends TestCase
33
33
{
34
34
public function testIsACommand ()
35
35
{
36
- $ this ->assertTrue (is_a (DoctrineOrmLoadDataFixturesCommand ::class, Command::class, true ));
36
+ $ this ->assertTrue (is_a (DoctrineOdmLoadDataFixturesCommand ::class, Command::class, true ));
37
37
}
38
38
39
39
public function testCanSetTheCommandApplication ()
40
40
{
41
41
$ application = new FrameworkBundleConsoleApplication (new DummyKernel ());
42
42
43
- $ command = new DoctrineOrmLoadDataFixturesCommand ('dummy ' , new FakeDoctrineManagerRegistry (), new FakeLoader ());
43
+ $ command = new DoctrineOdmLoadDataFixturesCommand ('dummy ' , new FakeDoctrineManagerRegistry (), new FakeLoader ());
44
44
$ command ->setApplication ($ application );
45
45
46
46
$ this ->assertSame ($ application , $ command ->getApplication ());
47
47
}
48
48
49
49
public function testCanResetTheCommandApplication ()
50
50
{
51
- $ command = new DoctrineOrmLoadDataFixturesCommand ('dummy ' , new FakeDoctrineManagerRegistry (), new FakeLoader ());
51
+ $ command = new DoctrineOdmLoadDataFixturesCommand ('dummy ' , new FakeDoctrineManagerRegistry (), new FakeLoader ());
52
52
$ command ->setApplication (null );
53
53
54
54
$ this ->assertTrue (true );
@@ -60,7 +60,7 @@ public function testCanResetTheCommandApplication()
60
60
*/
61
61
public function testThrowsAnExceptionIfInvalidApplicationIsGiven ()
62
62
{
63
- $ command = new DoctrineOrmLoadDataFixturesCommand ('dummy ' , new FakeDoctrineManagerRegistry (), new FakeLoader ());
63
+ $ command = new DoctrineOdmLoadDataFixturesCommand ('dummy ' , new FakeDoctrineManagerRegistry (), new FakeLoader ());
64
64
$ command ->setApplication (new ConsoleApplication ());
65
65
}
66
66
@@ -89,7 +89,7 @@ public function testCallCommandWithoutArguments()
89
89
/** @var LoaderInterface $loader */
90
90
$ loader = $ loaderProphecy ->reveal ();
91
91
92
- $ command = new DoctrineOrmLoadDataFixturesCommand ('dummy ' , $ managerRegistry , $ loader );
92
+ $ command = new DoctrineOdmLoadDataFixturesCommand ('dummy ' , $ managerRegistry , $ loader );
93
93
$ command ->setApplication ($ application );
94
94
$ exit = $ command ->run ($ input , new NullOutput ());
95
95
@@ -132,7 +132,7 @@ public function testCallCommandWithArguments()
132
132
/** @var LoaderInterface $loader */
133
133
$ loader = $ loaderProphecy ->reveal ();
134
134
135
- $ command = new DoctrineOrmLoadDataFixturesCommand ('dummy ' , $ managerRegistry , $ loader );
135
+ $ command = new DoctrineOdmLoadDataFixturesCommand ('dummy ' , $ managerRegistry , $ loader );
136
136
$ command ->setApplication ($ application );
137
137
$ exit = $ command ->run ($ input , new NullOutput ());
138
138
0 commit comments