-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from vmiguellima/add-laravel-11-support
Add Laravel 11.x Support
- Loading branch information
Showing
15 changed files
with
79 additions
and
258 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
/.idea | ||
coverage.xml | ||
.phpunit.result.cache | ||
.phpunit.cache | ||
composer.lock |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,18 +13,12 @@ class CheckInvitesTest extends TestCase | |
{ | ||
use DatabaseMigrations; | ||
|
||
/** | ||
* @test | ||
*/ | ||
public function check_if_code_is_invalid() | ||
public function test_can_check_if_code_is_invalid() | ||
{ | ||
Assert::assertFalse(Doorman::check('NOPE')); | ||
} | ||
|
||
/** | ||
* @test | ||
*/ | ||
public function check_if_maximum_uses_has_been_reached() | ||
public function text_can_check_if_maximum_uses_has_been_reached() | ||
{ | ||
Invite::forceCreate([ | ||
'code' => 'ABCDE', | ||
|
@@ -35,10 +29,7 @@ public function check_if_maximum_uses_has_been_reached() | |
Assert::assertFalse(Doorman::check('ABCDE')); | ||
} | ||
|
||
/** | ||
* @test | ||
*/ | ||
public function check_if_code_has_expired() | ||
public function test_can_check_if_code_has_expired() | ||
{ | ||
Invite::forceCreate([ | ||
'code' => 'ABCDE', | ||
|
@@ -48,10 +39,7 @@ public function check_if_code_has_expired() | |
Assert::assertFalse(Doorman::check('ABCDE')); | ||
} | ||
|
||
/** | ||
* @test | ||
*/ | ||
public function check_if_trying_to_use_a_code_belonging_to_someone_else() | ||
public function test_can_check_if_trying_to_use_a_code_belonging_to_someone_else() | ||
{ | ||
Invite::forceCreate([ | ||
'code' => 'ABCDE', | ||
|
@@ -61,10 +49,7 @@ public function check_if_trying_to_use_a_code_belonging_to_someone_else() | |
Assert::assertFalse(Doorman::check('ABCDE')); | ||
} | ||
|
||
/** | ||
* @test | ||
*/ | ||
public function check_a_code_for_a_specific_user() | ||
public function test_can_check_a_code_for_a_specific_user() | ||
{ | ||
Invite::forceCreate([ | ||
'code' => 'ABCDE', | ||
|
@@ -74,10 +59,7 @@ public function check_a_code_for_a_specific_user() | |
Assert::assertTrue(Doorman::check('ABCDE', '[email protected]')); | ||
} | ||
|
||
/** | ||
* @test | ||
*/ | ||
public function a_unrestricted_invite_can_be_redeemed_when_email_is_provided() | ||
public function test_can_a_unrestricted_invite_can_be_redeemed_when_email_is_provided() | ||
{ | ||
Invite::forceCreate([ | ||
'code' => 'ABCDE', | ||
|
@@ -86,10 +68,7 @@ public function a_unrestricted_invite_can_be_redeemed_when_email_is_provided() | |
Assert::assertTrue(Doorman::check('ABCDE', '[email protected]')); | ||
} | ||
|
||
/** | ||
* @test | ||
*/ | ||
public function it_can_have_unlimited_redemptions() | ||
public function test_can_it_can_have_unlimited_redemptions() | ||
{ | ||
Invite::forceCreate([ | ||
'code' => 'ABCDE', | ||
|
@@ -101,10 +80,7 @@ public function it_can_have_unlimited_redemptions() | |
} | ||
} | ||
|
||
/** | ||
* @test | ||
*/ | ||
public function it_is_not_case_sensitive() | ||
public function test_it_is_not_case_sensitive() | ||
{ | ||
Invite::forceCreate([ | ||
'code' => 'ABCDE', | ||
|
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
Oops, something went wrong.