Upgrade to Laravel 9 (#4413)
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
This commit is contained in:
parent
95e15d2c8a
commit
cbcf62086f
573 changed files with 4387 additions and 9411 deletions
|
@ -25,7 +25,7 @@ class FindAssignableAllocationServiceTest extends IntegrationTestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* Test that an unassigned allocation is prefered rather than creating an entirely new
|
||||
* Test that an unassigned allocation is preferred rather than creating an entirely new
|
||||
* allocation for the server.
|
||||
*/
|
||||
public function testExistingAllocationIsPreferred()
|
||||
|
@ -141,7 +141,7 @@ class FindAssignableAllocationServiceTest extends IntegrationTestCase
|
|||
|
||||
try {
|
||||
$this->getService()->handle($server);
|
||||
$this->assertTrue(false, 'This assertion should not be reached.');
|
||||
$this->fail('This assertion should not be reached.');
|
||||
} catch (Exception $exception) {
|
||||
$this->assertInstanceOf(InvalidArgumentException::class, $exception);
|
||||
$this->assertSame('Expected an integerish value. Got: string', $exception->getMessage());
|
||||
|
@ -152,7 +152,7 @@ class FindAssignableAllocationServiceTest extends IntegrationTestCase
|
|||
|
||||
try {
|
||||
$this->getService()->handle($server);
|
||||
$this->assertTrue(false, 'This assertion should not be reached.');
|
||||
$this->fail('This assertion should not be reached.');
|
||||
} catch (Exception $exception) {
|
||||
$this->assertInstanceOf(InvalidArgumentException::class, $exception);
|
||||
$this->assertSame('Expected an integerish value. Got: string', $exception->getMessage());
|
||||
|
@ -169,10 +169,7 @@ class FindAssignableAllocationServiceTest extends IntegrationTestCase
|
|||
$this->getService()->handle($server);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Pterodactyl\Services\Allocations\FindAssignableAllocationService
|
||||
*/
|
||||
private function getService()
|
||||
private function getService(): FindAssignableAllocationService
|
||||
{
|
||||
return $this->app->make(FindAssignableAllocationService::class);
|
||||
}
|
||||
|
|
Reference in a new issue