mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
remove references to no-static container
This commit is contained in:
parent
0a9b8ba0b0
commit
8841af8d2b
@ -26,7 +26,6 @@ use Chill\PersonBundle\Form\Type\PickPersonType;
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author Julien Fastré <julien.fastre@champs-libres.coop>
|
|
||||||
*/
|
*/
|
||||||
class PickPersonTypeTest extends KernelTestCase
|
class PickPersonTypeTest extends KernelTestCase
|
||||||
{
|
{
|
||||||
@ -86,7 +85,7 @@ class PickPersonTypeTest extends KernelTestCase
|
|||||||
*/
|
*/
|
||||||
public function testWithOptionCenter()
|
public function testWithOptionCenter()
|
||||||
{
|
{
|
||||||
$center = $this->container->get('doctrine.orm.entity_manager')
|
$center = self::$container->get('doctrine.orm.entity_manager')
|
||||||
->getRepository('ChillMainBundle:Center')
|
->getRepository('ChillMainBundle:Center')
|
||||||
->findOneBy(array('name' => 'Center A'))
|
->findOneBy(array('name' => 'Center A'))
|
||||||
;
|
;
|
||||||
@ -117,7 +116,7 @@ class PickPersonTypeTest extends KernelTestCase
|
|||||||
*/
|
*/
|
||||||
public function testWithOptionCenters()
|
public function testWithOptionCenters()
|
||||||
{
|
{
|
||||||
$centers = $this->container->get('doctrine.orm.entity_manager')
|
$centers = self::$container->get('doctrine.orm.entity_manager')
|
||||||
->getRepository('ChillMainBundle:Center')
|
->getRepository('ChillMainBundle:Center')
|
||||||
->findAll()
|
->findAll()
|
||||||
;
|
;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user