@@ -46,7 +46,7 @@ class CliTest extends PHPUnit_Framework_TestCase
4646 /**
4747 * @var \Doctrine\ORM\EntityManager
4848 */
49- protected $ entityManager ;
49+ protected $ objectManager ;
5050
5151 /**
5252 * {@inheritDoc}
@@ -70,7 +70,7 @@ function () use (&$invocations) {
7070
7171 $ application ->bootstrap ();
7272 $ this ->serviceManager = $ serviceManager ;
73- $ this ->entityManager = $ serviceManager ->get ('doctrine.entitymanager.orm_default ' );
73+ $ this ->objectManager = $ serviceManager ->get ('doctrine.entitymanager.orm_default ' );
7474 $ this ->cli = $ serviceManager ->get ('doctrine.cli ' );
7575 $ this ->assertSame (1 , $ invocations );
7676 }
@@ -82,12 +82,12 @@ public function testValidHelpers()
8282 /* @var $emHelper \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper */
8383 $ emHelper = $ helperSet ->get ('em ' );
8484 $ this ->assertInstanceOf ('Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper ' , $ emHelper );
85- $ this ->assertSame ($ this ->entityManager , $ emHelper ->getEntityManager ());
85+ $ this ->assertSame ($ this ->objectManager , $ emHelper ->getEntityManager ());
8686
8787 /* @var $dbHelper \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper */
8888 $ dbHelper = $ helperSet ->get ('db ' );
8989 $ this ->assertInstanceOf ('Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper ' , $ dbHelper );
90- $ this ->assertSame ($ this ->entityManager ->getConnection (), $ dbHelper ->getConnection ());
90+ $ this ->assertSame ($ this ->objectManager ->getConnection (), $ dbHelper ->getConnection ());
9191 }
9292
9393 public function testOrmDefaultIsUsedAsTheEntityManagerIfNoneIsProvided ()
@@ -101,7 +101,7 @@ public function testOrmDefaultIsUsedAsTheEntityManagerIfNoneIsProvided()
101101 /* @var $entityManagerHelper \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper */
102102 $ entityManagerHelper = $ application ->getHelperSet ()->get ('entityManager ' );
103103 $ this ->assertInstanceOf ('Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper ' , $ entityManagerHelper );
104- $ this ->assertSame ($ this ->entityManager , $ entityManagerHelper ->getEntityManager ());
104+ $ this ->assertSame ($ this ->objectManager , $ entityManagerHelper ->getEntityManager ());
105105 }
106106
107107 /**
@@ -160,7 +160,7 @@ public function testValidCommands($commandName, $className)
160160 $ this ->assertFalse ($ entityManagerOption ->isArray ());
161161 $ this ->assertNull ($ entityManagerOption ->getShortcut ());
162162 $ this ->assertSame ('doctrine.entitymanager.orm_default ' , $ entityManagerOption ->getDefault ());
163- $ this ->assertSame ('The name of the object- manager to use. ' , $ entityManagerOption ->getDescription ());
163+ $ this ->assertSame ('The name of the object manager to use. ' , $ entityManagerOption ->getDescription ());
164164 }
165165
166166 /**
0 commit comments