Update some server service tests
This commit is contained in:
parent
83a59cdf4f
commit
b55767426f
6 changed files with 117 additions and 165 deletions
|
@ -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 a new issue