diff --git a/tests/unit-tests/blocks/course-theme/test-class-quiz-actions.php b/tests/unit-tests/blocks/course-theme/test-class-quiz-actions.php index 43c29ee117..0ba597c3b6 100644 --- a/tests/unit-tests/blocks/course-theme/test-class-quiz-actions.php +++ b/tests/unit-tests/blocks/course-theme/test-class-quiz-actions.php @@ -11,17 +11,12 @@ class Quiz_Actions_Test extends WP_UnitTestCase { use Sensei_Course_Enrolment_Manual_Test_Helpers; /** + * Sensei factory instance. + * * @var $factory */ protected $factory; - /** - * Constructor function. - */ - public function __construct() { - parent::__construct(); - } - public function setUp(): void { parent::setUp(); @@ -92,9 +87,9 @@ public function testRender_WhenPaginationIsShown_AlwaysRendersQuizCompleteButton Sensei_Quiz::start_quiz_questions_loop(); /* Act */ - $result_for_other_pages = ( new \Sensei\Blocks\Course_Theme\Quiz_Actions() )->render(); + $result_for_other_pages = ( new \Sensei\Blocks\Course_Theme\Quiz_Actions() )->render(); $sensei_question_loop['current_page'] = $sensei_question_loop['total_pages']; - $result_for_last_page = ( new \Sensei\Blocks\Course_Theme\Quiz_Actions() )->render(); + $result_for_last_page = ( new \Sensei\Blocks\Course_Theme\Quiz_Actions() )->render(); /* Assert */ $this->assertStringContainsString( 'sensei-item-no-display', $result_for_other_pages );