| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function testMembershipApplicationCanBeLoaded(): void { |
||
| 30 | $entityManager = TestEnvironment::newDefault()->getFactory()->getEntityManager(); |
||
| 31 | |||
| 32 | $application = new MembershipApplication(); |
||
| 33 | $application->setDonationReceipt( true ); |
||
| 34 | |||
| 35 | $entityManager->persist( $application ); |
||
| 36 | $entityManager->flush(); |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var MembershipApplication $applicationFromDb |
||
| 40 | */ |
||
| 41 | $application = $entityManager->getRepository( MembershipApplication::class )->find( $application->getId() ); |
||
| 42 | |||
| 43 | $this->assertTrue( $application->getDonationReceipt() ); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |