@@ -29,7 +29,6 @@ public function testGetAssociationTables(): void
2929 $ purger = new ORMPurger ($ em );
3030 $ class = new ReflectionClass (ORMPurger::class);
3131 $ method = $ class ->getMethod ('getAssociationTables ' );
32- $ method ->setAccessible (true );
3332 $ associationTables = $ method ->invokeArgs ($ purger , [[$ metadata ], $ platform ]);
3433 $ this ->assertEquals ('readers.author_reader ' , $ associationTables [0 ]);
3534 }
@@ -42,7 +41,6 @@ public function testGetAssociationTablesQuoted(): void
4241 $ purger = new ORMPurger ($ em );
4342 $ class = new ReflectionClass (ORMPurger::class);
4443 $ method = $ class ->getMethod ('getAssociationTables ' );
45- $ method ->setAccessible (true );
4644 $ associationTables = $ method ->invokeArgs ($ purger , [[$ metadata ], $ platform ]);
4745 $ this ->assertEquals ($ associationTables [0 ], '"INSERT" ' );
4846 }
@@ -55,7 +53,6 @@ public function testTableNameWithSchema(): void
5553 $ purger = new ORMPurger ($ em );
5654 $ class = new ReflectionClass (ORMPurger::class);
5755 $ method = $ class ->getMethod ('getTableName ' );
58- $ method ->setAccessible (true );
5956 $ tableName = $ method ->invokeArgs ($ purger , [$ metadata , $ platform ]);
6057 $ this ->assertStringStartsWith ('test_schema ' , $ tableName );
6158 }
@@ -68,10 +65,8 @@ public function testGetDeleteFromTableSQL(): void
6865 $ purger = new ORMPurger ($ em );
6966 $ class = new ReflectionClass (ORMPurger::class);
7067 $ method = $ class ->getMethod ('getTableName ' );
71- $ method ->setAccessible (true );
7268 $ tableName = $ method ->invokeArgs ($ purger , [$ metadata , $ platform ]);
7369 $ method = $ class ->getMethod ('getDeleteFromTableSQL ' );
74- $ method ->setAccessible (true );
7570 $ sql = $ method ->invokeArgs ($ purger , [$ tableName , $ platform ]);
7671 $ this ->assertEquals ('DELETE FROM "Group" ' , $ sql );
7772 }
@@ -84,10 +79,8 @@ public function testGetDeleteFromTableSQLWithSchema(): void
8479 $ purger = new ORMPurger ($ em );
8580 $ class = new ReflectionClass (ORMPurger::class);
8681 $ method = $ class ->getMethod ('getTableName ' );
87- $ method ->setAccessible (true );
8882 $ tableName = $ method ->invokeArgs ($ purger , [$ metadata , $ platform ]);
8983 $ method = $ class ->getMethod ('getDeleteFromTableSQL ' );
90- $ method ->setAccessible (true );
9184 $ sql = $ method ->invokeArgs ($ purger , [$ tableName , $ platform ]);
9285
9386 if (class_exists (AbstractNamedObject::class)) {
0 commit comments