Skip to content

Commit 823be6a

Browse files
committed
#80 Adding unit tests
1 parent a50d136 commit 823be6a

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

api/tests/unit/config/fixtures/quizzes/python_quiz/questions/PythonQuestionsTest.php

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,36 @@ class PythonQuestionsTest extends TestCase
88
{
99
public function testQuestionOne()
1010
{
11-
$questionOne = require dirname(__DIR__) . '/../../../../../../config/fixtures/quizzes/python-quiz/questions/question_1.php';
11+
$question = require dirname(__DIR__) . '/../../../../../../config/fixtures/quizzes/python-quiz/questions/question_1.php';
1212

13-
self::assertIsArray($questionOne);
13+
self::assertIsArray($question);
1414
}
1515

16+
public function testQuestionTwo()
17+
{
18+
$question = require dirname(__DIR__) . '/../../../../../../config/fixtures/quizzes/python-quiz/questions/question_2.php';
19+
20+
self::assertIsArray($question);
21+
}
22+
23+
public function testQuestionThree()
24+
{
25+
$question = require dirname(__DIR__) . '/../../../../../../config/fixtures/quizzes/python-quiz/questions/question_3.php';
26+
27+
self::assertIsArray($question);
28+
}
29+
30+
public function testQuestionFour()
31+
{
32+
$question = require dirname(__DIR__) . '/../../../../../../config/fixtures/quizzes/python-quiz/questions/question_4.php';
33+
34+
self::assertIsArray($question);
35+
}
36+
37+
public function testQuestionFive()
38+
{
39+
$question = require dirname(__DIR__) . '/../../../../../../config/fixtures/quizzes/python-quiz/questions/question_5.php';
40+
41+
self::assertIsArray($question);
42+
}
1643
}

0 commit comments

Comments
 (0)