-
Notifications
You must be signed in to change notification settings - Fork 780
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[10.x] Update test for Laravel 9 (#1509)
* Update test for Laravel 9 * wip * wip
- Loading branch information
1 parent
1c69a01
commit 0f02c6c
Showing
4 changed files
with
37 additions
and
83 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Laravel\Passport\Tests\Feature; | ||
|
||
use Mockery as m; | ||
|
||
class KeysCommandTest extends PassportTestCase | ||
{ | ||
protected function tearDown(): void | ||
{ | ||
m::close(); | ||
|
||
@unlink(self::PUBLIC_KEY); | ||
@unlink(self::PRIVATE_KEY); | ||
} | ||
|
||
public function testPrivateAndPublicKeysAreGenerated() | ||
{ | ||
$this->assertFileExists(self::PUBLIC_KEY); | ||
$this->assertFileExists(self::PRIVATE_KEY); | ||
} | ||
|
||
public function testPrivateAndPublicKeysShouldNotBeGeneratedTwice() | ||
{ | ||
$this->artisan('passport:keys') | ||
->assertFailed() | ||
->expectsOutput('Encryption keys already exist. Use the --force option to overwrite them.'); | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.