Skip to content

Commit

Permalink
Update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Imran92 committed Oct 4, 2023
1 parent 407071a commit e985799
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit-tests/test-class-quiz.php
Original file line number Diff line number Diff line change
Expand Up @@ -2306,7 +2306,7 @@ public function testActionButtons_WhenPassedButNotInLearningMode_DoesNotShowTheN

wp_set_current_user( $user_id );

$comment_id = Sensei_Utils::update_lesson_status( $user_id, $lesson_1, 'failed' );
$comment_id = Sensei_Utils::update_lesson_status( $user_id, $lesson_1, 'passed' );
update_comment_meta( $comment_id, 'grade', 2 );
update_post_meta( $quiz_id, '_pass_required', 0 );

Expand All @@ -2324,7 +2324,7 @@ public function testActionButtons_WhenPassedButNotInLearningMode_DoesNotShowTheN
$result = ( new \Sensei\Blocks\Course_Theme\Quiz_Actions() )->render();

/* Assert */
$this->assertStringContainsString( 'Continue to next lesson', $result );
$this->assertStringNotContainsString( 'Continue to next lesson', $result );
}

public function testActionButtons_WhenPassedButNextLessonHasLowerOrder_DoesNotShowTheNextLessonButton() {
Expand Down

0 comments on commit e985799

Please sign in to comment.