Skip to content

Commit f559d25

Browse files
committed
Enhance test scenario
1 parent 425adfc commit f559d25

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

Storage/tests/System/ManageObjectsTest.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,10 @@ public function testSoftDeleteHNSObject()
357357
$this->assertStorageObjectExists($softDeleteHNSBucket, $restoredObject);
358358
}
359359

360-
public function testMoveObject()
360+
/**
361+
* @dataProvider provideMoveObject
362+
*/
363+
public function testMoveObject(bool $hnEnabled)
361364
{
362365
$name = "move-object-bucket-" . uniqid();
363366
$sourceObjectName = uniqid(self::TESTING_PREFIX);
@@ -366,6 +369,7 @@ public function testMoveObject()
366369
self::$client,
367370
$name,
368371
[
372+
'hierarchicalNamespace' => ['enabled' => $hnEnabled],
369373
'iamConfiguration' => ['uniformBucketLevelAccess' => ['enabled' => true]]
370374
]
371375
);
@@ -384,7 +388,12 @@ public function testMoveObject()
384388
$this->assertStorageObjectExists($sourceBucket, $movedObject);
385389
}
386390

387-
public function testRotatesCustomerSuppliedEncrpytion()
391+
public function provideMoveObject()
392+
{
393+
return [[true], [false]];
394+
}
395+
396+
public function testRotatesCustomerSuppliedEncryption()
388397
{
389398
$key = base64_encode(openssl_random_pseudo_bytes(32));
390399
$options = [

0 commit comments

Comments
 (0)