. */ namespace SP\Test\Services\Backup; use PHPUnit\Framework\TestCase; use SP\Services\Backup\FileBackupService; use function SP\Test\setupContext; /** * Class FileBackupServiceTest * * @package SP\Tests\Services\Backup */ class FileBackupServiceTest extends TestCase { /** * @throws \DI\DependencyException * @throws \DI\NotFoundException * @throws \SP\Core\Context\ContextException * @throws \SP\Services\ServiceException */ public function testDoBackup() { $dic = setupContext(); $service = $dic->get(FileBackupService::class); $service->doBackup(RESOURCE_DIR); $this->assertFileExists($service->getBackupFileApp() . '.gz'); $this->assertFileExists($service->getBackupFileDb()); } }