diff --git a/tests/Unit/FormBuilder/BlockTypes/TestDonationAmountBlockType.php b/tests/Unit/FormBuilder/BlockTypes/TestDonationAmountBlockType.php index 314340aa52..326f9787be 100644 --- a/tests/Unit/FormBuilder/BlockTypes/TestDonationAmountBlockType.php +++ b/tests/Unit/FormBuilder/BlockTypes/TestDonationAmountBlockType.php @@ -25,6 +25,7 @@ public function testGetName(): void } /** + * @unreleased Update test to use the new levels schema * @since 3.8.0 * @throws Exception */ @@ -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);