From 83146ccb1db0ed14650f791e60d10b0e4182271c Mon Sep 17 00:00:00 2001 From: Vojta Biberle Date: Wed, 29 Jan 2025 15:16:01 +0100 Subject: [PATCH] DMD-53 update deleteColor method --- src/Keboola/StorageApi/Options/BucketUpdateOptions.php | 6 +++--- tests/Backend/CommonPart1/BucketsTest.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Keboola/StorageApi/Options/BucketUpdateOptions.php b/src/Keboola/StorageApi/Options/BucketUpdateOptions.php index 8766e06fd..b29f4f426 100644 --- a/src/Keboola/StorageApi/Options/BucketUpdateOptions.php +++ b/src/Keboola/StorageApi/Options/BucketUpdateOptions.php @@ -54,14 +54,14 @@ public function setColor(?string $color): void $this->color = $color; } - public function isDeleteColor(): bool + private function isDeleteColor(): bool { return $this->deleteColor; } - public function setDeleteColor(bool $deleteColor): void + public function deleteColor(): void { - $this->deleteColor = $deleteColor; + $this->deleteColor = true; } /** @return array */ diff --git a/tests/Backend/CommonPart1/BucketsTest.php b/tests/Backend/CommonPart1/BucketsTest.php index e3997875f..6096e2375 100644 --- a/tests/Backend/CommonPart1/BucketsTest.php +++ b/tests/Backend/CommonPart1/BucketsTest.php @@ -147,7 +147,7 @@ public function testBucketDetail(string $devBranchType, string $userRole): void $this->assertEquals('red', $bucket['color']); $bucketUpdateOptions = new BucketUpdateOptions($bucketId, $displayName); - $bucketUpdateOptions->setDeleteColor(true); + $bucketUpdateOptions->deleteColor(); $bucket = $this->_testClient->updateBucket($bucketUpdateOptions); try { $this->_testClient->createBucket($displayName, self::STAGE_IN);