-
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.
- Loading branch information
1 parent
08f0b94
commit c10e9c6
Showing
4 changed files
with
37 additions
and
90 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.