Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/Feature/PassportTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ abstract class PassportTestCase extends TestCase
{
use RefreshDatabase;

const KEYS = __DIR__ . '/keys';
const PUBLIC_KEY = self::KEYS . '/oauth-public.key';
const PRIVATE_KEY = self::KEYS . '/oauth-private.key';
const KEYS = __DIR__.'/keys';
const PUBLIC_KEY = self::KEYS.'/oauth-public.key';
const PRIVATE_KEY = self::KEYS.'/oauth-private.key';

protected function setUp(): void
{
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/KeysCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

class KeysCommandTest extends TestCase
{
const KEYS = __DIR__ . '/../keys';
const PUBLIC_KEY = self::KEYS . '/oauth-public.key';
const PRIVATE_KEY = self::KEYS . '/oauth-private.key';
const KEYS = __DIR__.'/../keys';
const PUBLIC_KEY = self::KEYS.'/oauth-public.key';
const PRIVATE_KEY = self::KEYS.'/oauth-private.key';

protected function setUp(): void
{
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/PassportServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ public function test_can_use_crypto_keys_from_config()

public function test_can_use_crypto_keys_from_local_disk()
{
Passport::loadKeysFrom(__DIR__ . '/../keys');
Passport::loadKeysFrom(__DIR__.'/../keys');

file_put_contents(
__DIR__ . '/../keys/oauth-private.key',
__DIR__.'/../keys/oauth-private.key',
"-----BEGIN RSA PRIVATE KEY-----\ndisk\n-----END RSA PRIVATE KEY-----"
);

Expand All @@ -61,6 +61,6 @@ public function test_can_use_crypto_keys_from_local_disk()
file_get_contents($cryptKey->getKeyPath())
);

@unlink(__DIR__ . '/../keys/oauth-private.key');
@unlink(__DIR__.'/../keys/oauth-private.key');
}
}