From c0cca7966a33440df2059df702d7f2b0deda0e78 Mon Sep 17 00:00:00 2001 From: Paulo Iankoski Date: Tue, 23 Apr 2024 22:48:30 -0300 Subject: [PATCH] Test: Update test to reflect latest changes (#7365) --- .../BlockTypes/TestDonationAmountBlockType.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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);