Skip to content

Commit

Permalink
DMD-53 update deleteColor method
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtabiberle committed Jan 29, 2025
1 parent 0dfb874 commit 83146cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Keboola/StorageApi/Options/BucketUpdateOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion tests/Backend/CommonPart1/BucketsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 83146cc

Please sign in to comment.