Skip to content

Commit

Permalink
Test: Update test to reflect latest changes (#7365)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloiankoski authored Apr 24, 2024
1 parent 0d1ec0c commit c0cca79
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function testGetName(): void
}

/**
* @unreleased Update test to use the new levels schema
* @since 3.8.0
* @throws Exception
*/
Expand All @@ -35,14 +36,13 @@ public function testDefaultBlockModelAttributesMatchBlockTypeProperties(): void

$this->assertSame(__("Donation Amount", 'give'), $block->label);
$this->assertSame([
10,
25,
50,
100,
250,
500
['value' => 10, 'checked' => true],
['value' => 25],
['value' => 50],
['value' => 100],
['value' => 250],
['value' => 500],
], $block->levels);
$this->assertSame(10.00, $block->defaultLevel);
$this->assertSame("multi", $block->priceOption);
$this->assertSame(25, $block->setPrice);
$this->assertTrue($block->customAmount);
Expand Down

0 comments on commit c0cca79

Please sign in to comment.