@@ -27,8 +27,8 @@ protected function setUp(): void
27
27
->onlyMethods (['flush ' , 'persist ' ])
28
28
->getMockForAbstractClass ();
29
29
$ this ->objectManager = $ objectManager ;
30
-
31
- $ appFixtures = new AppFixtures ;
30
+
31
+ $ appFixtures = new AppFixtures () ;
32
32
$ appFixtures = $ this ->invokeProperty ($ appFixtures , 'objectManager ' , $ objectManager );
33
33
$ this ->appFixtures = $ appFixtures ;
34
34
}
@@ -69,7 +69,7 @@ public function testCreateQuestions()
69
69
{
70
70
$ html = require dirname (__DIR__ ) . '/../../../../config/fixtures/quizzes_old/html-quiz/quiz.php ' ;
71
71
72
- $ quiz = new Quiz ;
72
+ $ quiz = new Quiz () ;
73
73
$ quiz ->setTitle ('Test title ' );
74
74
$ quiz ->setSlug ('test-slug ' );
75
75
@@ -85,7 +85,7 @@ public function testCreateQuestions()
85
85
public function testCreateAnswers ()
86
86
{
87
87
$ question1 = require dirname (__DIR__ ) . '/../../../../config/fixtures/quizzes_old/html-quiz/questions/question_1.php ' ;
88
- $ question = new Question ;
88
+ $ question = new Question () ;
89
89
$ question ->setContent ('Test content ' );
90
90
91
91
$ createdAnswers = $ this ->appFixtures ->createAnswers ($ question1 [0 ]['answers ' ], $ question );
@@ -131,7 +131,7 @@ public function testCreateQuiz()
131
131
132
132
public function testCreateQuestion ()
133
133
{
134
- $ quiz = new Quiz ;
134
+ $ quiz = new Quiz () ;
135
135
$ quiz = $ this ->invokeProperty ($ quiz , 'id ' , 10 );
136
136
137
137
$ data = [
@@ -148,7 +148,7 @@ public function testCreateQuestion()
148
148
149
149
public function testCreateAnswer ()
150
150
{
151
- $ question = new Question ;
151
+ $ question = new Question () ;
152
152
$ question = $ this ->invokeProperty ($ question , 'id ' , 10 );
153
153
154
154
$ data = [
@@ -165,4 +165,4 @@ public function testCreateAnswer()
165
165
self ::assertEquals (3 , $ result ->getDisplayOrder ());
166
166
self ::assertEquals (false , $ result ->getIsCorrect ());
167
167
}
168
- }
168
+ }
0 commit comments