File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 43
43
$ config = Config::fromArray (config ('backup ' ));
44
44
45
45
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 () ;
48
48
49
49
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 ]);
51
51
52
52
$ config = Config::fromArray (config ('backup ' ));
53
53
54
54
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 () ;
You can’t perform that action at this time.
0 commit comments