Skip to content

Commit 074e35f

Browse files
pxpmfreekmurze
authored andcommitted
remove hardcoded values
1 parent f5a238f commit 074e35f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/Config/ConfigTest.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@
4343
$config = Config::fromArray(config('backup'));
4444

4545
expect($config->backup->destination)->toBeInstanceOf(DestinationConfig::class);
46-
expect($config->backup->destination->compressionMethod)->toBe(-1);
47-
});
46+
expect($config->backup->destination->compressionMethod)->toBe(ZipArchive::CM_DEFAULT);
47+
})->only();
4848

4949
it('merges the published config file with package config file and preserve published config values', function () {
50-
config()->set('backup.backup.destination', ['compression_method' => 2]);
50+
config()->set('backup.backup.destination', ['compression_method' => ZipArchive::CM_DEFLATE]);
5151

5252
$config = Config::fromArray(config('backup'));
5353

5454
expect($config->backup->destination)->toBeInstanceOf(DestinationConfig::class);
55-
expect($config->backup->destination->compressionMethod)->toBe(2);
56-
});
55+
expect($config->backup->destination->compressionMethod)->toBe(ZipArchive::CM_DEFLATE);
56+
})->only();

0 commit comments

Comments
 (0)