Skip to content

Commit

Permalink
Fix test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Imran92 committed Mar 20, 2024
1 parent 1d82de9 commit 3288498
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit-tests/admin/test-class-sensei-tour.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function setUp(): void {
$this->instance = Sensei_Tour::instance();

$this->install_version = \Sensei()->install_version;
\Sensei()->install_version = '4.21.2';
\Sensei()->install_version = '4.22.0';
}

public function tearDown(): void {
Expand Down Expand Up @@ -161,6 +161,8 @@ public function testEnqueueAdminScripts_WhenCalled_LoadsScriptsBasedOnVersionWhe
$this->login_as_admin();
$post = $this->factory->course->create_and_get();

\Sensei()->install_version = '4.21.2';

/* Act */
add_filter(
'sensei_tour_loaders',
Expand Down

0 comments on commit 3288498

Please sign in to comment.