Upgrade to Laravel 10
This commit is contained in:
parent
c4d7dc31d5
commit
16b120bc73
142 changed files with 1676 additions and 2019 deletions
|
@ -3,15 +3,14 @@
|
|||
namespace Tests;
|
||||
|
||||
use Illuminate\Contracts\Console\Kernel;
|
||||
use Illuminate\Foundation\Application;
|
||||
|
||||
trait CreatesApplication
|
||||
{
|
||||
/**
|
||||
* Creates the application.
|
||||
*
|
||||
* @return \Illuminate\Foundation\Application
|
||||
*/
|
||||
public function createApplication()
|
||||
public function createApplication(): Application
|
||||
{
|
||||
$app = require __DIR__.'/../bootstrap/app.php';
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ use Tests\TestCase;
|
|||
class AdminTest extends TestCase
|
||||
{
|
||||
/** @test */
|
||||
public function adminPageRedirectsUnauthedUsersToLoginPage(): void
|
||||
public function adminPageRedirectsUnauthorisedUsersToLoginPage(): void
|
||||
{
|
||||
$response = $this->get('/admin');
|
||||
$response->assertRedirect('/login');
|
||||
|
|
|
@ -7,7 +7,7 @@ use Lcobucci\JWT\Configuration;
|
|||
|
||||
trait TestToken
|
||||
{
|
||||
public function getToken()
|
||||
public function getToken(): string
|
||||
{
|
||||
$config = $this->app->make(Configuration::class);
|
||||
|
||||
|
@ -20,7 +20,7 @@ trait TestToken
|
|||
->toString();
|
||||
}
|
||||
|
||||
public function getTokenWithIncorrectScope()
|
||||
public function getTokenWithIncorrectScope(): string
|
||||
{
|
||||
$config = $this->app->make(Configuration::class);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue