File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313
1414namespace Liip \FunctionalTestBundle \Tests \Test ;
1515
16+ use Doctrine \Common \DataFixtures \Purger \ORMPurger ;
1617use Liip \FunctionalTestBundle \Test \WebTestCase ;
1718use Liip \FunctionalTestBundle \Tests \AppConfigMysql \AppConfigMysqlKernel ;
1819
@@ -121,12 +122,23 @@ public function testAppendFixtures(): void
121122 $ em = $ this ->getContainer ()
122123 ->get ('doctrine.orm.entity_manager ' );
123124
125+ $ users = $ em ->getRepository ('LiipFunctionalTestBundle:User ' )
126+ ->findAll ();
127+
128+ // Check that there are 3 users.
129+ $ this ->assertCount (
130+ 3 ,
131+ $ users
132+ );
133+
124134 /** @var \Liip\FunctionalTestBundle\Tests\App\Entity\User $user */
125135 $ user1 = $ em ->getRepository ('LiipFunctionalTestBundle:User ' )
126136 ->findOneBy ([
127137 'id ' => 1 ,
128138 ]);
129139
140+ $ this ->assertNotNull ($ user1 );
141+
130142 $ this ->assertSame (
131143 'foo@bar.com ' ,
132144 $ user1 ->getEmail ()
You can’t perform that action at this time.
0 commit comments