-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds L11 support * Removes verbose * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * Drops PHP 7.3 and PHP 7.4, and Laravel 8 * Migrates phpunit file * Drops PHP 8.0 * Adjust workflows * Drops L9 * Fixes test suite * Fixes `home` configuration * Apply fixes from StyleCI * wip * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip * Uses PHPUnit 10.4 * Uses `publishesMigrations` (#509) * Fixes tests * Apply fixes from StyleCI --------- Signed-off-by: Mior Muhammad Zaki <[email protected]> Co-authored-by: Mior Muhammad Zaki <[email protected]> Co-authored-by: StyleCI Bot <[email protected]>
- Loading branch information
1 parent
2029e69
commit 587a55f
Showing
9 changed files
with
48 additions
and
58 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
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 |
---|---|---|
@@ -1,21 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="false" | ||
backupStaticAttributes="false" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
convertDeprecationsToExceptions="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
> | ||
<phpunit colors="true"> | ||
<testsuites> | ||
<testsuite name="Fortify Test Suite"> | ||
<directory suffix=".php">./tests/</directory> | ||
<directory suffix="Test.php">./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
<php> | ||
<server name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/> | ||
<env name="APP_KEY" value="base64:uz4B1RtFO57QGzbZX1kRYX9hIRB50+QzqFeg9zbFJlY="/> | ||
</php> | ||
</phpunit> |
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 |
---|---|---|
|
@@ -16,8 +16,10 @@ | |
use Laravel\Fortify\LoginRateLimiter; | ||
use Laravel\Fortify\TwoFactorAuthenticatable; | ||
use Mockery; | ||
use Orchestra\Testbench\Attributes\WithMigration; | ||
use PragmaRX\Google2FA\Google2FA; | ||
|
||
#[WithMigration] | ||
class AuthenticatedSessionControllerTest extends OrchestraTestCase | ||
{ | ||
use RefreshDatabase; | ||
|
@@ -210,12 +212,12 @@ static function ($mock) use ($username) { | |
self::assertSame($expectedResult.'|192.168.0.1', $method->invoke($loginRateLimiter, $request)); | ||
} | ||
|
||
public function usernameProvider(): array | ||
public static function usernameProvider(): array | ||
{ | ||
return [ | ||
'lowercase special characters' => ['ⓣⓔⓢⓣ@ⓛⓐⓡⓐⓥⓔⓛ.ⓒⓞⓜ', '[email protected]'], | ||
'uppercase special characters' => ['ⓉⒺⓈⓉ@ⓁⒶⓇⒶⓋⒺⓁ.ⒸⓄⓂ', '[email protected]'], | ||
'special character numbers' =>['test⑩⓸③@laravel.com', '[email protected]'], | ||
'special character numbers' => ['test⑩⓸③@laravel.com', '[email protected]'], | ||
'default email' => ['[email protected]', '[email protected]'], | ||
]; | ||
} | ||
|
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 |
---|---|---|
|
@@ -6,24 +6,22 @@ | |
use Illuminate\Foundation\Testing\RefreshDatabase; | ||
use Laravel\Fortify\Contracts\ConfirmPasswordViewResponse; | ||
use Laravel\Fortify\Fortify; | ||
use Orchestra\Testbench\Attributes\WithMigration; | ||
|
||
#[WithMigration] | ||
class ConfirmablePasswordControllerTest extends OrchestraTestCase | ||
{ | ||
use RefreshDatabase; | ||
|
||
protected $user; | ||
|
||
protected function setUp(): void | ||
protected function afterRefreshingDatabase() | ||
{ | ||
$this->afterApplicationCreated(function () { | ||
$this->user = TestConfirmPasswordUser::forceCreate([ | ||
'name' => 'Taylor Otwell', | ||
'email' => '[email protected]', | ||
'password' => bcrypt('secret'), | ||
]); | ||
}); | ||
|
||
parent::setUp(); | ||
$this->user = TestConfirmPasswordUser::forceCreate([ | ||
'name' => 'Taylor Otwell', | ||
'email' => '[email protected]', | ||
'password' => bcrypt('secret'), | ||
]); | ||
} | ||
|
||
public function test_the_confirm_password_view_is_returned() | ||
|
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