Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function testNewMembershipApplicationCanBeInserted(): void { |
||
16 | $entityManager = TestEnvironment::newDefault()->getFactory()->getEntityManager(); |
||
17 | $entityManager->persist( new MembershipApplication() ); |
||
18 | $entityManager->flush(); |
||
19 | |||
20 | $count = $entityManager->createQueryBuilder() |
||
21 | ->select( 'COUNT(r.id)' ) |
||
22 | ->from( MembershipApplication::class, 'r' ) |
||
23 | ->getQuery() |
||
24 | ->getSingleScalarResult(); |
||
25 | |||
26 | $this->assertSame( '1', $count ); |
||
27 | } |
||
28 | |||
30 |