From 48da0aa199b7e2fd37a671cb1a535715fc8ad21b Mon Sep 17 00:00:00 2001 From: Paulo Iankoski Date: Mon, 28 Aug 2023 15:48:22 -0300 Subject: [PATCH] doc: replace since tags on v3 tests with 3.0.0 (#6905) --- .../Feature/Actions/StoreCustomFieldsTest.php | 4 +-- .../Controllers/BlockRenderControllerTest.php | 2 +- .../Controllers/DonateControllerTest.php | 2 +- .../FormBuilderResourceControllerTest.php | 10 +++---- .../TestStripePaymentElementGateway.php | 8 +++--- .../TestTraits/HasMockStripeAccounts.php | 4 +-- .../Webhooks/Listeners/ChargeRefundedTest.php | 4 +-- .../CustomerSubscriptionDeletedTest.php | 4 +-- .../Listeners/InvoicePaymentFailedTest.php | 4 +-- .../Listeners/InvoicePaymentSucceededTest.php | 10 +++---- .../Listeners/PaymentIntentFailedTest.php | 4 +-- .../Listeners/PaymentIntentSucceededTest.php | 4 +-- .../ConvertQueryDataToDonationFormTest.php | 2 +- .../Actions/GenerateDonateRouteUrlTest.php | 2 +- ...rateDonationConfirmationReceiptUrlTest.php | 2 +- ...ionConfirmationReceiptViewRouteUrlTest.php | 2 +- ...enerateDonationFormPreviewRouteUrlTest.php | 4 +-- .../GenerateDonationFormViewRouteUrlTest.php | 4 +-- .../TestDonationDetailsController.php | 4 +-- .../TestDonorDetailsController.php | 2 +- .../BlockAttributesTest.php | 6 ++--- .../DonateControllerDataTest.php | 10 +++---- .../DonateFormDataTest.php | 6 ++--- .../DonateFormRouteDataTest.php | 6 ++--- ...onConfirmationReceiptViewRouteDataTest.php | 6 ++--- .../DonationFormPreviewRouteDataTest.php | 8 +++--- .../DonationFormViewRouteDataTest.php | 4 +-- .../ValidationRouteDataTest.php | 8 +++--- ...stConvertDonationFormBlocksToFieldsApi.php | 4 +-- .../TestGenerateDonateRouteSignatureArgs.php | 4 +-- .../DonationFormGoalDataTest.php | 2 +- .../DonationForms/Models/TestDonationForm.php | 6 ++--- .../TestDonationFormRepository.php | 26 +++++++++---------- ...nationConfirmationReceiptViewModelTest.php | 8 +++--- .../ViewModels/DonationFormViewModelTest.php | 4 +-- .../Framework/Blocks/TestBlockCollection.php | 20 +++++++------- .../Unit/Framework/Blocks/TestBlockModel.php | 12 ++++----- .../Registrars/TestFormTemplateRegistrar.php | 14 +++++----- .../FormTemplates/TestFormTemplate.php | 4 +-- .../Receipts/TestDonationReceipt.php | 10 +++---- .../Receipts/TestDonationReceiptBuilder.php | 2 +- .../TestGenerateConfirmationPageReceipt.php | 4 +-- .../Actions/TestTransformTemplateTags.php | 4 +-- .../TemplateTags/TestDonationTemplateTags.php | 4 +-- .../ViewModels/FormBuilderViewModelTest.php | 2 +- 45 files changed, 133 insertions(+), 133 deletions(-) diff --git a/tests/Feature/Actions/StoreCustomFieldsTest.php b/tests/Feature/Actions/StoreCustomFieldsTest.php index 008be69184..026dbd7d7e 100644 --- a/tests/Feature/Actions/StoreCustomFieldsTest.php +++ b/tests/Feature/Actions/StoreCustomFieldsTest.php @@ -17,7 +17,7 @@ class StoreCustomFieldsTest extends TestCase use RefreshDatabase; /** - * @since 0.1.0 + * @since 3.0.0 * * @return void * @throws Exception @@ -66,7 +66,7 @@ public function testShouldStoreAsDonorMeta() } /** - * @since 0.1.0 + * @since 3.0.0 * * @return void * @throws Exception diff --git a/tests/Feature/Controllers/BlockRenderControllerTest.php b/tests/Feature/Controllers/BlockRenderControllerTest.php index e30cdcc629..bc7c4a3935 100644 --- a/tests/Feature/Controllers/BlockRenderControllerTest.php +++ b/tests/Feature/Controllers/BlockRenderControllerTest.php @@ -14,7 +14,7 @@ class BlockRenderControllerTest extends TestCase use RefreshDatabase; /** - * @since 0.1.0 + * @since 3.0.0 * * @return void */ diff --git a/tests/Feature/Controllers/DonateControllerTest.php b/tests/Feature/Controllers/DonateControllerTest.php index 4d658cbc91..81bee894b3 100644 --- a/tests/Feature/Controllers/DonateControllerTest.php +++ b/tests/Feature/Controllers/DonateControllerTest.php @@ -19,7 +19,7 @@ class DonateControllerTest extends TestCase use RefreshDatabase; /** - * @since 0.1.0 + * @since 3.0.0 * @return void * @throws Exception|DonationFormFieldErrorsException */ diff --git a/tests/Feature/Controllers/FormBuilderResourceControllerTest.php b/tests/Feature/Controllers/FormBuilderResourceControllerTest.php index fc7ee26445..ba87637fae 100644 --- a/tests/Feature/Controllers/FormBuilderResourceControllerTest.php +++ b/tests/Feature/Controllers/FormBuilderResourceControllerTest.php @@ -23,7 +23,7 @@ class FormBuilderResourceControllerTest extends TestCase use RefreshDatabase; /** - * @since 0.1.0 + * @since 3.0.0 * * @return void * @throws Exception @@ -51,7 +51,7 @@ public function testShowShouldReturnFormBuilderData() } /** - * @since 0.1.0 + * @since 3.0.0 * * @return void * @throws Exception @@ -91,7 +91,7 @@ public function testUpdateShouldReturnUpdatedFormBuilderData() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testUpdateShouldFailIfFormDoesNotExist() { @@ -108,7 +108,7 @@ public function testUpdateShouldFailIfFormDoesNotExist() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testShowShouldFailIfFormDoesNotExist() { @@ -230,7 +230,7 @@ public function testShowShouldFailIfBlockDataIsInvalid() /** * - * @since 0.1.0 + * @since 3.0.0 */ public function getMockRequest(string $method): WP_REST_Request { diff --git a/tests/Feature/Gateways/Stripe/TestStripePaymentElementGateway.php b/tests/Feature/Gateways/Stripe/TestStripePaymentElementGateway.php index acbdb6f0f2..75437e9f72 100644 --- a/tests/Feature/Gateways/Stripe/TestStripePaymentElementGateway.php +++ b/tests/Feature/Gateways/Stripe/TestStripePaymentElementGateway.php @@ -25,7 +25,7 @@ class TestStripePaymentElementGateway extends TestCase use RefreshDatabase; /** - * @since 0.1.0 + * @since 3.0.0 * * @throws ApiErrorException * @throws Exception @@ -56,7 +56,7 @@ public function testFormSettingsShouldReturnData() } /** - * @since 0.1.0 + * @since 3.0.0 * * @throws \Give\Framework\Exceptions\Primitives\Exception * @throws PaymentGatewayException @@ -146,7 +146,7 @@ public function testCreatePaymentShouldReturnRespondToBrowserCommand() } /** - * @since 0.1.0 + * @since 3.0.0 */ protected function getMockGateway(array $methods = []) { @@ -167,7 +167,7 @@ function (PHPUnit_Framework_MockObject_MockBuilder $mockBuilder) use ($methods) } /** - * @since 0.1.0 + * @since 3.0.0 */ protected function getMockIntent(Money $amount, string $stripePublishableKey): PaymentIntent { diff --git a/tests/Feature/Gateways/Stripe/TestTraits/HasMockStripeAccounts.php b/tests/Feature/Gateways/Stripe/TestTraits/HasMockStripeAccounts.php index ca7f75a1b8..dae6a01679 100644 --- a/tests/Feature/Gateways/Stripe/TestTraits/HasMockStripeAccounts.php +++ b/tests/Feature/Gateways/Stripe/TestTraits/HasMockStripeAccounts.php @@ -4,7 +4,7 @@ trait HasMockStripeAccounts { /** - * @since 0.3.0 + * @since 3.0.0 */ public function addMockStripeAccounts() { @@ -29,4 +29,4 @@ public function addMockStripeAccounts() // Set dummy default key. give_update_option('_give_stripe_default_account', 'account_2'); } -} \ No newline at end of file +} diff --git a/tests/Feature/Gateways/Stripe/Webhooks/Listeners/ChargeRefundedTest.php b/tests/Feature/Gateways/Stripe/Webhooks/Listeners/ChargeRefundedTest.php index 1da1547c51..0d3a544906 100644 --- a/tests/Feature/Gateways/Stripe/Webhooks/Listeners/ChargeRefundedTest.php +++ b/tests/Feature/Gateways/Stripe/Webhooks/Listeners/ChargeRefundedTest.php @@ -18,7 +18,7 @@ class ChargeRefundedTest extends TestCase use RefreshDatabase, HasMockStripeAccounts; /** - * @since 0.3.0 + * @since 3.0.0 * * @throws Exception */ @@ -52,4 +52,4 @@ public function testShouldUpdateSubscriptionStatusToRefunded() $this->assertTrue($donation->status->isRefunded()); } -} \ No newline at end of file +} diff --git a/tests/Feature/Gateways/Stripe/Webhooks/Listeners/CustomerSubscriptionDeletedTest.php b/tests/Feature/Gateways/Stripe/Webhooks/Listeners/CustomerSubscriptionDeletedTest.php index 29a2ad0c4b..1846dc19ee 100644 --- a/tests/Feature/Gateways/Stripe/Webhooks/Listeners/CustomerSubscriptionDeletedTest.php +++ b/tests/Feature/Gateways/Stripe/Webhooks/Listeners/CustomerSubscriptionDeletedTest.php @@ -19,7 +19,7 @@ class CustomerSubscriptionDeletedTest extends TestCase use RefreshDatabase, HasMockStripeAccounts; /** - * @since 0.3.0 + * @since 3.0.0 * * @throws Exception */ @@ -64,4 +64,4 @@ public function testShouldUpdateSubscriptionStatusToCompleted() $this->assertTrue($subscription->status->isCompleted()); } -} \ No newline at end of file +} diff --git a/tests/Feature/Gateways/Stripe/Webhooks/Listeners/InvoicePaymentFailedTest.php b/tests/Feature/Gateways/Stripe/Webhooks/Listeners/InvoicePaymentFailedTest.php index cc1313e92d..10331c2fc2 100644 --- a/tests/Feature/Gateways/Stripe/Webhooks/Listeners/InvoicePaymentFailedTest.php +++ b/tests/Feature/Gateways/Stripe/Webhooks/Listeners/InvoicePaymentFailedTest.php @@ -22,7 +22,7 @@ class InvoicePaymentFailedTest extends TestCase use RefreshDatabase, HasMockStripeAccounts; /** - * @since 0.3.0 + * @since 3.0.0 * * @throws Exception */ @@ -88,4 +88,4 @@ function (PHPUnit_Framework_MockObject_MockBuilder $mockBuilder) { $this->assertTrue($subscription->status->isFailing()); } -} \ No newline at end of file +} diff --git a/tests/Feature/Gateways/Stripe/Webhooks/Listeners/InvoicePaymentSucceededTest.php b/tests/Feature/Gateways/Stripe/Webhooks/Listeners/InvoicePaymentSucceededTest.php index a2c75f703d..360ecdd817 100644 --- a/tests/Feature/Gateways/Stripe/Webhooks/Listeners/InvoicePaymentSucceededTest.php +++ b/tests/Feature/Gateways/Stripe/Webhooks/Listeners/InvoicePaymentSucceededTest.php @@ -24,7 +24,7 @@ class InvoicePaymentSucceededTest extends TestCase use RefreshDatabase, HasMockStripeAccounts; /** - * @since 0.3.0 + * @since 3.0.0 * * @throws Exception */ @@ -66,7 +66,7 @@ public function testShouldUpdateDonationStatusOfInitialDonation() } /** - * @since 0.3.0 + * @since 3.0.0 * * @throws Exception */ @@ -115,7 +115,7 @@ public function testShouldCreateRenewal() } /** - * @since 0.3.0 + * @since 3.0.0 * * @throws Exception */ @@ -183,7 +183,7 @@ function (PHPUnit_Framework_MockObject_MockBuilder $mockBuilder) { } /** - * @since 0.3.0 + * @since 3.0.0 * * @throws Exception */ @@ -245,4 +245,4 @@ function (PHPUnit_Framework_MockObject_MockBuilder $mockBuilder) { $this->assertCount(2, $subscription->donations); $this->assertTrue($subscription->status->isCompleted()); } -} \ No newline at end of file +} diff --git a/tests/Feature/Gateways/Stripe/Webhooks/Listeners/PaymentIntentFailedTest.php b/tests/Feature/Gateways/Stripe/Webhooks/Listeners/PaymentIntentFailedTest.php index a2baa430a6..142980fe69 100644 --- a/tests/Feature/Gateways/Stripe/Webhooks/Listeners/PaymentIntentFailedTest.php +++ b/tests/Feature/Gateways/Stripe/Webhooks/Listeners/PaymentIntentFailedTest.php @@ -18,7 +18,7 @@ class PaymentIntentFailedTest extends TestCase use RefreshDatabase; /** - * @since 0.3.0 + * @since 3.0.0 * * @throws Exception */ @@ -54,4 +54,4 @@ public function testShouldUpdateDonationStatus() $this->assertTrue($donation->status->isFailed()); } -} \ No newline at end of file +} diff --git a/tests/Feature/Gateways/Stripe/Webhooks/Listeners/PaymentIntentSucceededTest.php b/tests/Feature/Gateways/Stripe/Webhooks/Listeners/PaymentIntentSucceededTest.php index cc5b4f4a78..9cb680700e 100644 --- a/tests/Feature/Gateways/Stripe/Webhooks/Listeners/PaymentIntentSucceededTest.php +++ b/tests/Feature/Gateways/Stripe/Webhooks/Listeners/PaymentIntentSucceededTest.php @@ -18,7 +18,7 @@ class PaymentIntentSucceededTest extends TestCase use RefreshDatabase; /** - * @since 0.3.0 + * @since 3.0.0 * * @throws Exception */ @@ -54,4 +54,4 @@ public function testShouldUpdateDonationStatus() $this->assertTrue($donation->status->isComplete()); } -} \ No newline at end of file +} diff --git a/tests/Unit/Actions/ConvertQueryDataToDonationFormTest.php b/tests/Unit/Actions/ConvertQueryDataToDonationFormTest.php index 38b5954018..ed2c6881f1 100644 --- a/tests/Unit/Actions/ConvertQueryDataToDonationFormTest.php +++ b/tests/Unit/Actions/ConvertQueryDataToDonationFormTest.php @@ -18,7 +18,7 @@ class ConvertQueryDataToDonationFormTest extends TestCase use RefreshDatabase; /** - * @since 0.1.0 + * @since 3.0.0 * * @return void */ diff --git a/tests/Unit/Actions/GenerateDonateRouteUrlTest.php b/tests/Unit/Actions/GenerateDonateRouteUrlTest.php index 58c81892d2..a52a9343ca 100644 --- a/tests/Unit/Actions/GenerateDonateRouteUrlTest.php +++ b/tests/Unit/Actions/GenerateDonateRouteUrlTest.php @@ -9,7 +9,7 @@ class GenerateDonateRouteUrlTest extends TestCase { /** - * @since 0.1.0 + * @since 3.0.0 * * @return void */ diff --git a/tests/Unit/Actions/GenerateDonationConfirmationReceiptUrlTest.php b/tests/Unit/Actions/GenerateDonationConfirmationReceiptUrlTest.php index e65d61ea1a..9aa4f995b5 100644 --- a/tests/Unit/Actions/GenerateDonationConfirmationReceiptUrlTest.php +++ b/tests/Unit/Actions/GenerateDonationConfirmationReceiptUrlTest.php @@ -12,7 +12,7 @@ class GenerateDonationConfirmationReceiptUrlTest extends TestCase use RefreshDatabase; /** - * @since 0.1.0 + * @since 3.0.0 * * @return void */ diff --git a/tests/Unit/Actions/GenerateDonationConfirmationReceiptViewRouteUrlTest.php b/tests/Unit/Actions/GenerateDonationConfirmationReceiptViewRouteUrlTest.php index 0712030cb2..b5725c913b 100644 --- a/tests/Unit/Actions/GenerateDonationConfirmationReceiptViewRouteUrlTest.php +++ b/tests/Unit/Actions/GenerateDonationConfirmationReceiptViewRouteUrlTest.php @@ -9,7 +9,7 @@ class GenerateDonationConfirmationReceiptViewRouteUrlTest extends TestCase { /** - * @since 0.1.0 + * @since 3.0.0 * * @return void */ diff --git a/tests/Unit/Actions/GenerateDonationFormPreviewRouteUrlTest.php b/tests/Unit/Actions/GenerateDonationFormPreviewRouteUrlTest.php index f60ca9bd7a..e84e99d9da 100644 --- a/tests/Unit/Actions/GenerateDonationFormPreviewRouteUrlTest.php +++ b/tests/Unit/Actions/GenerateDonationFormPreviewRouteUrlTest.php @@ -6,12 +6,12 @@ use Give\Tests\TestCase; /** - * @since 0.1.0 + * @since 3.0.0 */ class GenerateDonationFormPreviewRouteUrlTest extends TestCase { /** - * @since 0.1.0 + * @since 3.0.0 * * @return void */ diff --git a/tests/Unit/Actions/GenerateDonationFormViewRouteUrlTest.php b/tests/Unit/Actions/GenerateDonationFormViewRouteUrlTest.php index 5daeba20c9..4cc31b6b24 100644 --- a/tests/Unit/Actions/GenerateDonationFormViewRouteUrlTest.php +++ b/tests/Unit/Actions/GenerateDonationFormViewRouteUrlTest.php @@ -6,12 +6,12 @@ use Give\Tests\TestCase; /** - * @since 0.1.0 + * @since 3.0.0 */ class GenerateDonationFormViewRouteUrlTest extends TestCase { /** - * @since 0.1.0 + * @since 3.0.0 * * @return void */ diff --git a/tests/Unit/CustomFields/Controllers/TestDonationDetailsController.php b/tests/Unit/CustomFields/Controllers/TestDonationDetailsController.php index ec5f20c21e..891d2782c6 100644 --- a/tests/Unit/CustomFields/Controllers/TestDonationDetailsController.php +++ b/tests/Unit/CustomFields/Controllers/TestDonationDetailsController.php @@ -15,7 +15,7 @@ class TestDonationDetailsController extends TestCase use RefreshDatabase; /** - * @since 0.1.0 + * @since 3.0.0 */ public function testShowShouldReturnDonationDetailsViewRendered() { @@ -37,7 +37,7 @@ public function testShowShouldReturnDonationDetailsViewRendered() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testShowShouldReturnEmptyStringIfDonationFormIsLegacy() { diff --git a/tests/Unit/CustomFields/Controllers/TestDonorDetailsController.php b/tests/Unit/CustomFields/Controllers/TestDonorDetailsController.php index 08319b4a35..040de99f03 100644 --- a/tests/Unit/CustomFields/Controllers/TestDonorDetailsController.php +++ b/tests/Unit/CustomFields/Controllers/TestDonorDetailsController.php @@ -42,7 +42,7 @@ public function testShowShouldReturnDonorDetailsViewRendered() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testShowShouldReturnEmptyIfIsLegacyForm() { diff --git a/tests/Unit/DataTransferObjects/BlockAttributesTest.php b/tests/Unit/DataTransferObjects/BlockAttributesTest.php index 996a94491b..c9cbc34f31 100644 --- a/tests/Unit/DataTransferObjects/BlockAttributesTest.php +++ b/tests/Unit/DataTransferObjects/BlockAttributesTest.php @@ -6,13 +6,13 @@ use Give\Tests\TestCase; /** - * @since 0.1.0 + * @since 3.0.0 */ class BlockAttributesTest extends TestCase { /** - * @since 0.1.0 + * @since 3.0.0 * * @return void */ @@ -31,7 +31,7 @@ public function testShouldReturnAttributesArray() } /** - * @since 0.1.0 + * @since 3.0.0 * * @return void */ diff --git a/tests/Unit/DataTransferObjects/DonateControllerDataTest.php b/tests/Unit/DataTransferObjects/DonateControllerDataTest.php index ec6ab13b17..62af7bba05 100644 --- a/tests/Unit/DataTransferObjects/DonateControllerDataTest.php +++ b/tests/Unit/DataTransferObjects/DonateControllerDataTest.php @@ -18,13 +18,13 @@ use Give\Tests\TestCase; /** - * @since 0.1.0 + * @since 3.0.0 */ class DonateControllerDataTest extends TestCase { /** - * @since 0.1.0 + * @since 3.0.0 */ public function testToDonationShouldReturnDonationModel() { @@ -79,7 +79,7 @@ public function testToDonationShouldReturnDonationModel() } /** - * @since 0.3.0 + * @since 3.0.0 * @throws Exception */ public function testToSubscriptionShouldReturnSubscriptionModel() @@ -149,7 +149,7 @@ public function testToSubscriptionShouldReturnSubscriptionModel() } /** - * @since 0.3.0 + * @since 3.0.0 * @throws Exception */ public function testToInitialSubscriptionDonationShouldReturnDonationModel() @@ -220,7 +220,7 @@ public function testToInitialSubscriptionDonationShouldReturnDonationModel() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testGetCustomFieldsShouldReturnCustomFieldsArray() { diff --git a/tests/Unit/DataTransferObjects/DonateFormDataTest.php b/tests/Unit/DataTransferObjects/DonateFormDataTest.php index fff057fb31..6e325cef5a 100644 --- a/tests/Unit/DataTransferObjects/DonateFormDataTest.php +++ b/tests/Unit/DataTransferObjects/DonateFormDataTest.php @@ -19,14 +19,14 @@ use Give\Tests\TestTraits\RefreshDatabase; /** - * @since 0.1.0 + * @since 3.0.0 */ class DonateFormDataTest extends TestCase { use RefreshDatabase; /** - * @since 0.1.0 + * @since 3.0.0 * * @return void * @throws Exception @@ -88,7 +88,7 @@ public function testShouldTransformToDonationModel() } /** - * @since 0.3.0 + * @since 3.0.0 * * @return void * @throws Exception diff --git a/tests/Unit/DataTransferObjects/DonateFormRouteDataTest.php b/tests/Unit/DataTransferObjects/DonateFormRouteDataTest.php index dc69d22b5a..359d634042 100644 --- a/tests/Unit/DataTransferObjects/DonateFormRouteDataTest.php +++ b/tests/Unit/DataTransferObjects/DonateFormRouteDataTest.php @@ -13,13 +13,13 @@ use Give\Tests\TestCase; /** - * @since 0.1.0 + * @since 3.0.0 */ class DonateFormRouteDataTest extends TestCase { /** - * @since 0.1.0 + * @since 3.0.0 */ public function testValidatedShouldReturnValidatedData() { @@ -92,7 +92,7 @@ public function testValidatedShouldReturnValidatedData() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testValidatedShouldReturnValidatedDataWithSubscriptionData() { diff --git a/tests/Unit/DataTransferObjects/DonationConfirmationReceiptViewRouteDataTest.php b/tests/Unit/DataTransferObjects/DonationConfirmationReceiptViewRouteDataTest.php index fb29a43ae4..7f239ab36f 100644 --- a/tests/Unit/DataTransferObjects/DonationConfirmationReceiptViewRouteDataTest.php +++ b/tests/Unit/DataTransferObjects/DonationConfirmationReceiptViewRouteDataTest.php @@ -6,12 +6,12 @@ use Give\Tests\TestCase; /** - * @since 0.1.0 + * @since 3.0.0 */ class DonationConfirmationReceiptViewRouteDataTest extends TestCase { /** - * @since 0.1.0 + * @since 3.0.0 * * @return void */ @@ -27,7 +27,7 @@ public function testShouldReturnReceiptId() } /** - * @since 0.1.0 + * @since 3.0.0 * * @return void */ diff --git a/tests/Unit/DataTransferObjects/DonationFormPreviewRouteDataTest.php b/tests/Unit/DataTransferObjects/DonationFormPreviewRouteDataTest.php index dd925986f4..2d5d14e26c 100644 --- a/tests/Unit/DataTransferObjects/DonationFormPreviewRouteDataTest.php +++ b/tests/Unit/DataTransferObjects/DonationFormPreviewRouteDataTest.php @@ -7,12 +7,12 @@ use Give\Tests\TestCase; /** - * @since 0.1.0 + * @since 3.0.0 */ class DonationFormPreviewRouteDataTest extends TestCase { /** - * @since 0.1.0 + * @since 3.0.0 * * @return void */ @@ -27,7 +27,7 @@ public function testShouldReturnFormId() } /** - * @since 0.1.0 + * @since 3.0.0 * * @return void */ @@ -44,7 +44,7 @@ public function testShouldReturnFormSettings() } /** - * @since 0.1.0 + * @since 3.0.0 * * @return void */ diff --git a/tests/Unit/DataTransferObjects/DonationFormViewRouteDataTest.php b/tests/Unit/DataTransferObjects/DonationFormViewRouteDataTest.php index bc067c2446..24853b60e0 100644 --- a/tests/Unit/DataTransferObjects/DonationFormViewRouteDataTest.php +++ b/tests/Unit/DataTransferObjects/DonationFormViewRouteDataTest.php @@ -6,12 +6,12 @@ use Give\Tests\TestCase; /** - * @since 0.1.0 + * @since 3.0.0 */ class DonationFormViewRouteDataTest extends TestCase { /** - * @since 0.1.0 + * @since 3.0.0 * * @return void */ diff --git a/tests/Unit/DataTransferObjects/ValidationRouteDataTest.php b/tests/Unit/DataTransferObjects/ValidationRouteDataTest.php index 4dcbbf4e72..c1102f3c70 100644 --- a/tests/Unit/DataTransferObjects/ValidationRouteDataTest.php +++ b/tests/Unit/DataTransferObjects/ValidationRouteDataTest.php @@ -16,14 +16,14 @@ use Give\Tests\TestTraits\RefreshDatabase; /** - * @since 0.4.0 + * @since 3.0.0 */ class ValidationRouteDataTest extends TestCase { use RefreshDatabase; /** - * @since 0.4.0 + * @since 3.0.0 * @throws DonationFormFieldErrorsException */ public function testValidateShouldReturnValidJsonResponse() @@ -61,7 +61,7 @@ public function testValidateShouldReturnValidJsonResponse() } /** - * @since 0.4.0 + * @since 3.0.0 * @throws DonationFormFieldErrorsException|Exception */ public function testValidateShouldThrowDonationFormFieldErrorsException() @@ -104,7 +104,7 @@ public function testValidateShouldThrowDonationFormFieldErrorsException() } /** - * @since 0.4.0 + * @since 3.0.0 * * @throws DonationFormFieldErrorsException|Exception */ diff --git a/tests/Unit/DonationForms/Actions/TestConvertDonationFormBlocksToFieldsApi.php b/tests/Unit/DonationForms/Actions/TestConvertDonationFormBlocksToFieldsApi.php index 03f5db422f..ceebea3cfd 100644 --- a/tests/Unit/DonationForms/Actions/TestConvertDonationFormBlocksToFieldsApi.php +++ b/tests/Unit/DonationForms/Actions/TestConvertDonationFormBlocksToFieldsApi.php @@ -18,7 +18,7 @@ final class TestConvertDonationFormBlocksToFieldsApi extends TestCase use RefreshDatabase; /** - * @since 0.4.0 + * @since 3.0.0 * * @return void * @throws Exception @@ -70,7 +70,7 @@ public function testShouldReturnFormSchema() } /** - * @since 0.4.0 + * @since 3.0.0 * * @return void * @throws Exception diff --git a/tests/Unit/DonationForms/Actions/TestGenerateDonateRouteSignatureArgs.php b/tests/Unit/DonationForms/Actions/TestGenerateDonateRouteSignatureArgs.php index bf06e29fe8..4c7986c726 100644 --- a/tests/Unit/DonationForms/Actions/TestGenerateDonateRouteSignatureArgs.php +++ b/tests/Unit/DonationForms/Actions/TestGenerateDonateRouteSignatureArgs.php @@ -9,7 +9,7 @@ final class TestGenerateDonateRouteSignatureArgs extends TestCase { /** - * @since 0.4.0 + * @since 3.0.0 */ public function testShouldReturnArrayOfQueryArgs() { @@ -23,4 +23,4 @@ public function testShouldReturnArrayOfQueryArgs() 'givewp-route-signature-expiration' => $signature->expiration, ], $queryArgs); } -} \ No newline at end of file +} diff --git a/tests/Unit/DonationForms/DataTransferObjects/DonationFormGoalDataTest.php b/tests/Unit/DonationForms/DataTransferObjects/DonationFormGoalDataTest.php index f873b9ae41..fcd600c998 100644 --- a/tests/Unit/DonationForms/DataTransferObjects/DonationFormGoalDataTest.php +++ b/tests/Unit/DonationForms/DataTransferObjects/DonationFormGoalDataTest.php @@ -13,7 +13,7 @@ class DonationFormGoalDataTest extends TestCase use RefreshDatabase; /** - * @since 0.1.0 + * @since 3.0.0 */ public function testToArrayShouldReturnExpectedArrayOfData() { diff --git a/tests/Unit/DonationForms/Models/TestDonationForm.php b/tests/Unit/DonationForms/Models/TestDonationForm.php index 5840dc8ce5..7dd7cc4881 100644 --- a/tests/Unit/DonationForms/Models/TestDonationForm.php +++ b/tests/Unit/DonationForms/Models/TestDonationForm.php @@ -8,14 +8,14 @@ use Give\Tests\TestTraits\RefreshDatabase; /** - * @since 0.1.0 + * @since 3.0.0 */ class TestDonationForm extends TestCase { use RefreshDatabase; /** - * @since 0.1.0 + * @since 3.0.0 * * @return void * @@ -31,7 +31,7 @@ public function testCreateShouldInsertDonationForm() } /** - * @since 0.1.0 + * @since 3.0.0 * * @return void */ diff --git a/tests/Unit/DonationForms/Repositories/TestDonationFormRepository.php b/tests/Unit/DonationForms/Repositories/TestDonationFormRepository.php index 3761eedb44..a6b69ab346 100644 --- a/tests/Unit/DonationForms/Repositories/TestDonationFormRepository.php +++ b/tests/Unit/DonationForms/Repositories/TestDonationFormRepository.php @@ -44,7 +44,7 @@ public function setUp() } /** - * @since 0.1.0 + * @since 3.0.0 * * @return void * @@ -61,7 +61,7 @@ public function testGetByIdShouldReturnDonationForm() } /** - * @since 0.1.0 + * @since 3.0.0 * * @return void * @@ -80,7 +80,7 @@ public function testInsertShouldAddDonationFormToDatabase() } /** - * @since 0.1.0 + * @since 3.0.0 * * @return void * @@ -98,7 +98,7 @@ public function testInsertShouldFailValidationWhenMissingKeyAndThrowException() } /** - * @since 0.1.0 + * @since 3.0.0 * * @return void * @@ -116,7 +116,7 @@ public function testUpdateShouldFailValidationAndThrowException() } /** - * @since 0.1.0 + * @since 3.0.0 * * @return void * @@ -136,7 +136,7 @@ public function testUpdateShouldUpdateDonationFormValuesInTheDatabase() } /** - * @since 0.1.0 + * @since 3.0.0 * * @return void * @@ -159,7 +159,7 @@ public function testDeleteShouldRemoveDonationFormFromTheDatabase() /** * - * @since 0.1.0 + * @since 3.0.0 */ public function testShouldGetTotalNumberOfDonors() { @@ -173,7 +173,7 @@ public function testShouldGetTotalNumberOfDonors() /** * - * @since 0.1.0 + * @since 3.0.0 */ public function testShouldGetTotalNumberOfDonations() { @@ -188,7 +188,7 @@ public function testShouldGetTotalNumberOfDonations() /** * TODO: Notice in this test how we need to simulate a status update on the donation to trigger the legacy listener that update '_give_form_earnings' meta. This should be resolved up the chain in our donation repository and/or factory so we don't have to do this. * - * @since 0.1.0 + * @since 3.0.0 */ public function testShouldGetTotalRevenue() { @@ -214,7 +214,7 @@ public function testShouldGetTotalRevenue() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testShouldGetFormDataGateways() { @@ -222,7 +222,7 @@ public function testShouldGetFormDataGateways() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testIsLegacyFormShouldReturnTrueWhenFormIsLegacy() { @@ -238,7 +238,7 @@ public function testIsLegacyFormShouldReturnTrueWhenFormIsLegacy() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testIsLegacyFormShouldReturnFalseIfNotLegacy() { @@ -250,7 +250,7 @@ public function testIsLegacyFormShouldReturnFalseIfNotLegacy() /** - * @since 0.4.0 + * @since 3.0.0 * * @return void * @throws Exception diff --git a/tests/Unit/DonationForms/ViewModels/DonationConfirmationReceiptViewModelTest.php b/tests/Unit/DonationForms/ViewModels/DonationConfirmationReceiptViewModelTest.php index 4dacf8822b..357600be83 100644 --- a/tests/Unit/DonationForms/ViewModels/DonationConfirmationReceiptViewModelTest.php +++ b/tests/Unit/DonationForms/ViewModels/DonationConfirmationReceiptViewModelTest.php @@ -17,7 +17,7 @@ class DonationConfirmationReceiptViewModelTest extends TestCase use RefreshDatabase; /** - * @since 0.1.0 + * @since 3.0.0 */ public function testFormExportsShouldReturnExpectedArrayOfData() { @@ -43,7 +43,7 @@ public function testFormExportsShouldReturnExpectedArrayOfData() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testExportsShouldReturnExpectedArrayOfData() { @@ -75,7 +75,7 @@ public function testExportsShouldReturnExpectedArrayOfData() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testGetReceiptShouldReturnConfirmationReceipt() { @@ -105,7 +105,7 @@ public function testGetReceiptShouldReturnConfirmationReceipt() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testGetDonationFormShouldReturnModel() { diff --git a/tests/Unit/DonationForms/ViewModels/DonationFormViewModelTest.php b/tests/Unit/DonationForms/ViewModels/DonationFormViewModelTest.php index ff0080a09f..a514309b6b 100644 --- a/tests/Unit/DonationForms/ViewModels/DonationFormViewModelTest.php +++ b/tests/Unit/DonationForms/ViewModels/DonationFormViewModelTest.php @@ -21,8 +21,8 @@ class DonationFormViewModelTest extends TestCase use RefreshDatabase; /** - * @since 0.6.0 update form export data - * @since 0.1.0 + * @since 3.0.0 update form export data + * @since 3.0.0 */ public function testExportsShouldReturnExpectedArrayOfData() { diff --git a/tests/Unit/Framework/Blocks/TestBlockCollection.php b/tests/Unit/Framework/Blocks/TestBlockCollection.php index 9a0a0e4f2a..ebe71ba048 100644 --- a/tests/Unit/Framework/Blocks/TestBlockCollection.php +++ b/tests/Unit/Framework/Blocks/TestBlockCollection.php @@ -7,7 +7,7 @@ use Give\Tests\TestCase; /** - * @since 0.1.0 + * @since 3.0.0 */ class TestBlockCollection extends TestCase { @@ -15,7 +15,7 @@ class TestBlockCollection extends TestCase protected $blockCollection; /** - * @since 0.4.0 + * @since 3.0.0 * * @return void */ @@ -37,9 +37,9 @@ public function setUp() } /** - * @return void - * @since 0.1.0 + * @since 3.0.0 * + * @return void */ public function testMakesCollectionFromArray() { @@ -52,7 +52,7 @@ public function testMakesCollectionFromArray() } /** - * @since 0.1.0 + * @since 3.0.0 * * @return void */ @@ -64,7 +64,7 @@ public function testMakesCollectionFromJson() } /** - * @since 0.1.0 + * @since 3.0.0 * * @return void */ @@ -83,7 +83,7 @@ public function testCollectionReturnsArray() } /** - * @since 0.4.0 + * @since 3.0.0 */ public function testInsertBeforeAddsNewBlockBeforeReference() { @@ -103,7 +103,7 @@ public function testInsertBeforeAddsNewBlockBeforeReference() } /** - * @since 0.4.0 + * @since 3.0.0 */ public function testInsertAfterAddsNewBlockAfterReference() { @@ -123,7 +123,7 @@ public function testInsertAfterAddsNewBlockAfterReference() } /** - * @since 0.4.0 + * @since 3.0.0 */ public function testPrependAddsNewBlockAsFirstChild() { @@ -138,7 +138,7 @@ public function testPrependAddsNewBlockAsFirstChild() } /** - * @since 0.4.0 + * @since 3.0.0 */ public function testAppendAddsNewBlockAsLastChild() { diff --git a/tests/Unit/Framework/Blocks/TestBlockModel.php b/tests/Unit/Framework/Blocks/TestBlockModel.php index e31eab8982..3ad08913b2 100644 --- a/tests/Unit/Framework/Blocks/TestBlockModel.php +++ b/tests/Unit/Framework/Blocks/TestBlockModel.php @@ -7,12 +7,12 @@ use Give\Tests\TestCase; /** - * @since 0.1.0 + * @since 3.0.0 */ class TestBlockModel extends TestCase { /** - * @since 0.1.0 + * @since 3.0.0 * @return void */ public function testHasName() @@ -26,7 +26,7 @@ public function testHasName() } /** - * @since 0.1.0 + * @since 3.0.0 * @return void */ public function testHasAttributes() @@ -43,7 +43,7 @@ public function testHasAttributes() } /** - * @since 0.4.0 + * @since 3.0.0 * @return void */ public function testSetAttributes() @@ -61,7 +61,7 @@ public function testSetAttributes() /** * @return void - * @since 0.1.0 + * @since 3.0.0 */ public function testHasInnerBlocksCollection() { @@ -78,7 +78,7 @@ public function testHasInnerBlocksCollection() } /** - * @since 0.1.0 + * @since 3.0.0 * * @return void */ diff --git a/tests/Unit/Framework/FormTemplates/Registrars/TestFormTemplateRegistrar.php b/tests/Unit/Framework/FormTemplates/Registrars/TestFormTemplateRegistrar.php index 0a62524acd..635b0a62f2 100644 --- a/tests/Unit/Framework/FormTemplates/Registrars/TestFormTemplateRegistrar.php +++ b/tests/Unit/Framework/FormTemplates/Registrars/TestFormTemplateRegistrar.php @@ -9,7 +9,7 @@ use Give\Tests\TestCase; /** - * @since 0.1.0 + * @since 3.0.0 */ class TestFormDesignRegistrar extends TestCase { @@ -17,7 +17,7 @@ class TestFormDesignRegistrar extends TestCase public $registrar; /** - * @since 0.1.0 + * @since 3.0.0 */ public function setUp() { @@ -26,7 +26,7 @@ public function setUp() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testRegisterFormDesignShouldAddTemplate() { @@ -36,7 +36,7 @@ public function testRegisterFormDesignShouldAddTemplate() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testUnRegisterFormDesignShouldRemoveTemplate() { @@ -47,7 +47,7 @@ public function testUnRegisterFormDesignShouldRemoveTemplate() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testShouldThrowInvalidArgumentExceptionIfNotExtendingFormDesignClass() { @@ -56,7 +56,7 @@ public function testShouldThrowInvalidArgumentExceptionIfNotExtendingFormDesignC } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testShouldThrowOverFlowExceptionIfFormDesignIdIsTaken() { @@ -66,7 +66,7 @@ public function testShouldThrowOverFlowExceptionIfFormDesignIdIsTaken() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testGetFormDesignsShouldReturnArrayOfRegisteredTemplates() { diff --git a/tests/Unit/Framework/FormTemplates/TestFormTemplate.php b/tests/Unit/Framework/FormTemplates/TestFormTemplate.php index 27243aa1c4..f549203801 100644 --- a/tests/Unit/Framework/FormTemplates/TestFormTemplate.php +++ b/tests/Unit/Framework/FormTemplates/TestFormTemplate.php @@ -7,12 +7,12 @@ use Give\Tests\TestCase; /** - * @since 0.1.0 + * @since 3.0.0 */ class TestFormDesign extends TestCase { /** - * @since 0.1.0 + * @since 3.0.0 */ public function testFormDesignImplementsInterface() { diff --git a/tests/Unit/Framework/Receipts/TestDonationReceipt.php b/tests/Unit/Framework/Receipts/TestDonationReceipt.php index 6316de3894..468e13f7a0 100644 --- a/tests/Unit/Framework/Receipts/TestDonationReceipt.php +++ b/tests/Unit/Framework/Receipts/TestDonationReceipt.php @@ -20,7 +20,7 @@ class TestDonationReceipt extends TestCase use RefreshDatabase; /** - * @since 0.1.0 + * @since 3.0.0 */ public function testToArrayReturnsExpectedArrayShape() { @@ -81,7 +81,7 @@ public function testToArrayReturnsExpectedArrayShape() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testToArrayShouldBeEmptyWithoutGenerate() { @@ -103,7 +103,7 @@ public function testToArrayShouldBeEmptyWithoutGenerate() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testToArrayReturnsExpectedArrayShapeWithSubscriptionDetails() { @@ -187,7 +187,7 @@ public function testToArrayDonationDetailsShouldDisplayFeeRecovered() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testAddAdditionalDetailWithToArrayReturnsExpectedArrayShape() { @@ -212,7 +212,7 @@ public function testAddAdditionalDetailWithToArrayReturnsExpectedArrayShape() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testToArrayReturnsExpectedArrayShapeWithCustomFields() { diff --git a/tests/Unit/Framework/Receipts/TestDonationReceiptBuilder.php b/tests/Unit/Framework/Receipts/TestDonationReceiptBuilder.php index 8291db95d7..73efa4c7a4 100644 --- a/tests/Unit/Framework/Receipts/TestDonationReceiptBuilder.php +++ b/tests/Unit/Framework/Receipts/TestDonationReceiptBuilder.php @@ -17,7 +17,7 @@ class TestDonationReceiptBuilder extends TestCase use RefreshDatabase; /** - * @since 0.1.0 + * @since 3.0.0 */ public function testToConfirmationPageShouldReturnDonationReceipt() { diff --git a/tests/Unit/Framework/Receipts/TestGenerateConfirmationPageReceipt.php b/tests/Unit/Framework/Receipts/TestGenerateConfirmationPageReceipt.php index 8964596ba0..27bcb80b80 100644 --- a/tests/Unit/Framework/Receipts/TestGenerateConfirmationPageReceipt.php +++ b/tests/Unit/Framework/Receipts/TestGenerateConfirmationPageReceipt.php @@ -17,7 +17,7 @@ class TestGenerateConfirmationPageReceipt extends TestCase use RefreshDatabase; /** - * @since 0.1.0 + * @since 3.0.0 */ public function testShouldGenerateReceiptForOneTimeDonation() { @@ -117,7 +117,7 @@ public function testShouldGenerateReceiptForOneTimeDonation() } /** - * @since 0.1.0 + * @since 3.0.0 */ public function testShouldGenerateReceiptForRecurringDonation() { diff --git a/tests/Unit/Framework/TemplateTags/Actions/TestTransformTemplateTags.php b/tests/Unit/Framework/TemplateTags/Actions/TestTransformTemplateTags.php index 033a159b23..da26c5dd4b 100644 --- a/tests/Unit/Framework/TemplateTags/Actions/TestTransformTemplateTags.php +++ b/tests/Unit/Framework/TemplateTags/Actions/TestTransformTemplateTags.php @@ -8,7 +8,7 @@ class TestTransformTemplateTags extends TestCase { /** - * @since 0.1.0 + * @since 3.0.0 * @return void */ public function testShouldTransformTemplateTags() { @@ -22,4 +22,4 @@ public function testShouldTransformTemplateTags() { $this->assertEquals("Bill, your contribution means a lot and will be put to good use in making a difference. We’ve sent your donation receipt to bill@murray.com.", $transformedContent); } -} \ No newline at end of file +} diff --git a/tests/Unit/Framework/TemplateTags/TestDonationTemplateTags.php b/tests/Unit/Framework/TemplateTags/TestDonationTemplateTags.php index 86e8d6b1aa..1d06c1a042 100644 --- a/tests/Unit/Framework/TemplateTags/TestDonationTemplateTags.php +++ b/tests/Unit/Framework/TemplateTags/TestDonationTemplateTags.php @@ -11,7 +11,7 @@ class TestDonationTemplateTags extends TestCase { use RefreshDatabase; /** - * @since 0.1.0 + * @since 3.0.0 */ public function testShouldTransformDonationTemplateTags() { @@ -26,4 +26,4 @@ public function testShouldTransformDonationTemplateTags() { $this->assertEquals("Bill, your contribution means a lot and will be put to good use in making a difference. We’ve sent your donation receipt to bill@murray.com.", $tags->getContent()); } -} \ No newline at end of file +} diff --git a/tests/Unit/ViewModels/FormBuilderViewModelTest.php b/tests/Unit/ViewModels/FormBuilderViewModelTest.php index f22854cfa6..1ed0c1c6c9 100644 --- a/tests/Unit/ViewModels/FormBuilderViewModelTest.php +++ b/tests/Unit/ViewModels/FormBuilderViewModelTest.php @@ -23,7 +23,7 @@ class FormBuilderViewModelTest extends TestCase use RefreshDatabase; /** - * @since 0.1.0 + * @since 3.0.0 * * @return void * @throws Exception