Update some server service tests

This commit is contained in:
Dane Everitt 2020-06-24 22:18:48 -07:00
parent 83a59cdf4f
commit b55767426f
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
6 changed files with 117 additions and 165 deletions

View file

@ -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')