diff --git a/Storage/tests/System/RequesterPaysTest.php b/Storage/tests/System/RequesterPaysTest.php index 95379dcd0c2d..151537744390 100644 --- a/Storage/tests/System/RequesterPaysTest.php +++ b/Storage/tests/System/RequesterPaysTest.php @@ -374,7 +374,8 @@ public function testUploadMethodsWithoutUserProject(callable $call) public function testUploadMethodsWithUserProject(callable $call) { $bucket = self::$requesterClient->bucket(self::$bucketName, true); - $call($bucket); + $objectName = $call($bucket); + $this->assertTrue($bucket->object($objectName)->exists()); } public function uploadMethods() @@ -382,16 +383,20 @@ public function uploadMethods() return [ 'resumable-upload' => [ function (Bucket $bucket) { + $name = uniqid(self::TESTING_PREFIX); $bucket->getResumableUploader(self::$content, [ - 'name' => uniqid(self::TESTING_PREFIX) + 'name' => $name ])->upload(); + return $name; }, ], 'streamable-upload' => [ function (Bucket $bucket) { + $name = uniqid(self::TESTING_PREFIX); $bucket->getStreamableUploader(self::$content, [ - 'name' => uniqid(self::TESTING_PREFIX) + 'name' => $name ])->upload(); + return $name; }, ], ];