-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/integration-tests-cleanup
- Loading branch information
Showing
12 changed files
with
53 additions
and
168 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
tests/Fixtures/inc/Engine/License/API/User/isLicenseExpiredGracePeriod.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
return [ | ||
'testShouldReturnTrueWhenNotObject' => [ | ||
'data' => [], | ||
'expected' => true, | ||
], | ||
'testShouldReturnTrueWhenPropertyNotSet' => [ | ||
'data' => json_decode( json_encode( [ | ||
'ID' => 1, | ||
] ) ), | ||
'expected' => true, | ||
], | ||
'testShouldReturnFalseWhenNotExpired' => [ | ||
'data' => json_decode( json_encode( [ | ||
'ID' => 1, | ||
'licence_expiration' => strtotime( 'next week' ), | ||
] ) ), | ||
'expected' => false, | ||
], | ||
'testShouldReturnTrueWhenExpired' => [ | ||
'data' => json_decode( json_encode( [ | ||
'ID' => 1, | ||
'licence_expiration' => strtotime( '3 weeks ago' ), | ||
] ) ), | ||
'expected' => true, | ||
], | ||
]; |
41 changes: 0 additions & 41 deletions
41
tests/Integration/inc/Engine/Preload/Subscriber/excludePrivatePostUri.php
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
tests/Unit/inc/Engine/Common/JobManager/Strategy/Context/RetryContext/setStrategy.php
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 0 additions & 75 deletions
75
tests/Unit/inc/Engine/Preload/Subscriber/excludePrivatePostUri.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters