File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -770,22 +770,23 @@ public function testUploadingAnEmptyFile(): void
770
770
771
771
$ expected = [
772
772
'length ' => 0 ,
773
- 'md5 ' => 'd41d8cd98f00b204e9800998ecf8427e ' ,
774
773
];
775
774
776
775
$ this ->assertSameDocument ($ expected , $ fileDocument );
776
+ $ this ->assertArrayNotHasKey ('md5 ' , $ fileDocument );
777
777
}
778
778
779
- public function testDisableMD5 (): void
779
+ public function testEnableMD5 (): void
780
780
{
781
- $ options = ['disableMD5 ' => true ];
781
+ $ options = ['disableMD5 ' => false ];
782
782
$ id = $ this ->bucket ->uploadFromStream ('filename ' , $ this ->createStream ('data ' ), $ options );
783
783
784
784
$ fileDocument = $ this ->filesCollection ->findOne (
785
785
['_id ' => $ id ],
786
786
);
787
787
788
- $ this ->assertArrayNotHasKey ('md5 ' , $ fileDocument );
788
+ $ this ->assertArrayHasKey ('md5 ' , $ fileDocument );
789
+ $ this ->assertSame ('8d777f385d3dfec8815d20f7496026dc ' , $ fileDocument ['md5 ' ]);
789
790
}
790
791
791
792
public function testDisableMD5OptionInConstructor (): void
You can’t perform that action at this time.
0 commit comments