mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
Update some server service tests
This commit is contained in:
@@ -17,6 +17,7 @@ use Pterodactyl\Models\Pack;
|
||||
use Illuminate\Contracts\Filesystem\Factory;
|
||||
use Pterodactyl\Services\Packs\ExportPackService;
|
||||
use Pterodactyl\Contracts\Repository\PackRepositoryInterface;
|
||||
use Pterodactyl\Exceptions\Service\Pack\ZipArchiveCreationException;
|
||||
|
||||
class ExportPackServiceTest extends TestCase
|
||||
{
|
||||
@@ -132,11 +133,11 @@ class ExportPackServiceTest extends TestCase
|
||||
|
||||
/**
|
||||
* Test that an exception is thrown when a ZipArchive cannot be created.
|
||||
*
|
||||
* @expectedException \Pterodactyl\Exceptions\Service\Pack\ZipArchiveCreationException
|
||||
*/
|
||||
public function testExceptionIsThrownIfZipArchiveCannotBeCreated()
|
||||
{
|
||||
$this->expectException(ZipArchiveCreationException::class);
|
||||
|
||||
$this->setupTestData();
|
||||
|
||||
$this->getFunctionMock('\\Pterodactyl\\Services\\Packs', 'tempnam')
|
||||
|
||||
Reference in New Issue
Block a user