public function testFixtureInterface()
 {
     $em = $this->getMock('Doctrine\\Common\\Persistence\\ObjectManager');
     $fixture = new MyFixture2();
     $fixture->load($em);
     $this->assertTrue($fixture->loaded);
 }
 public function testFixtureInterface()
 {
     $em = $this->createMock(ObjectManager::class);
     $fixture = new MyFixture2();
     $fixture->load($em);
     self::assertTrue($fixture->loaded);
 }
Example #3
0
 public function testFixtureInterface()
 {
     $em = $this->getMockEntityManager();
     $fixture = new MyFixture2();
     $fixture->load($em);
     $this->assertTrue($fixture->loaded);
 }