Skip to content

Commit

Permalink
Fixing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhogg committed Sep 19, 2024
1 parent 2ff3b7e commit 21a3938
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public function test_delete_notice_remind() {
LLMS_Admin_Notices::delete_notice( 'test-remind', 'remind' );

$this->assertEquals( array(), LLMS_Admin_Notices::get_notice( 'test-remind' ) );
$this->assertEquals( 'yes', get_transient( 'llms_admin_notice_test-remind_delay' ) );
$this->assertTrue( is_numeric( get_option( 'llms_admin_notice_test-remind_delay' ) ) && time() < get_option( 'llms_admin_notice_test-remind_delay' ) );
$this->assertSame( 1, did_action( 'lifterlms_remind_test-remind_notice' ) );


Expand Down Expand Up @@ -263,7 +263,7 @@ public function test_delete_notice_dismiss() {
LLMS_Admin_Notices::delete_notice( 'test-dismiss', 'hide' );

$this->assertEquals( array(), LLMS_Admin_Notices::get_notice( 'test-dismiss' ) );
$this->assertEquals( 'yes', get_transient( 'llms_admin_notice_test-dismiss_delay' ) );
$this->assertTrue( is_numeric( get_option( 'llms_admin_notice_test-dismiss_delay' ) && time() < get_option( 'llms_admin_notice_test-dismiss_delay' ) ) );
$this->assertSame( 1, did_action( 'lifterlms_hide_test-dismiss_notice' ) );

}
Expand Down

0 comments on commit 21a3938

Please sign in to comment.