Skip to content

Commit

Permalink
Fix lint issues in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Imran92 committed Sep 4, 2024
1 parent ca79f14 commit 1708578
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions tests/unit-tests/blocks/course-theme/test-class-quiz-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit 1708578

Please sign in to comment.