Update to Laravel 8
Co-authored-by: Matthew Penner <me@matthewp.io>
This commit is contained in:
parent
028921b42a
commit
a043071e3c
211 changed files with 4394 additions and 2933 deletions
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Tests\Unit\Http\Middleware;
|
||||
namespace Pterodactyl\Tests\Unit\Http\Middleware;
|
||||
|
||||
use Mockery as m;
|
||||
use Pterodactyl\Models\User;
|
||||
|
@ -40,7 +40,7 @@ class LanguageMiddlewareTest extends MiddlewareTestCase
|
|||
*/
|
||||
public function testLanguageIsSetWithAuthenticatedUser()
|
||||
{
|
||||
$user = factory(User::class)->make(['language' => 'de']);
|
||||
$user = User::factory()->make(['language' => 'de']);
|
||||
|
||||
$this->request->shouldReceive('user')->withNoArgs()->andReturn($user);
|
||||
$this->appMock->shouldReceive('setLocale')->with('de')->once()->andReturnNull();
|
||||
|
|
Reference in a new issue