From 2e945d04874cf3ec319a5f414db027e3498f5dca Mon Sep 17 00:00:00 2001 From: Tang Rufus Date: Fri, 21 Apr 2017 16:25:32 +0800 Subject: [PATCH] Fix: Assert that WP Review Me installed time is set within the past ten seconds --- tests/functional/ReviewNoticeShowsUpAfterTenDaysCept.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/functional/ReviewNoticeShowsUpAfterTenDaysCept.php b/tests/functional/ReviewNoticeShowsUpAfterTenDaysCept.php index 1f0745f..145eb52 100644 --- a/tests/functional/ReviewNoticeShowsUpAfterTenDaysCept.php +++ b/tests/functional/ReviewNoticeShowsUpAfterTenDaysCept.php @@ -15,7 +15,8 @@ $I->wantToTest('WP Review Me installed time is set within the past ten seconds'); $installed = $I->grabOptionFromDatabase($optionName); -$I->assertEquals(time(), $installed, null, 10); +$I->assertGreaterOrEquals(time() - 10, $installed); +$I->assertLessOrEquals(time(), $installed); $I->amGoingTo('fast forward ten days and one minute (864060 seconds)'); $I->haveOptionInDatabase($optionName, time() - 864060);