/** @test */ public function it_handles_non_existing_associations() { $phone = new Phone(); $phone->setNumber('+49123456789'); $this->persistanceHelper->persist($phone); $this->assertEquals('+49123456789', $phone->getNumber()); $this->assertEmpty($phone->getApps()); }
public function setEntityManager(EntityManager $em) { $this->persistenceHelper->setEntityManager($em); }