Skip to content

Commit

Permalink
doc: replace since tags on v3 tests with 3.0.0 (#6905)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloiankoski authored Aug 28, 2023
1 parent c966d1c commit 48da0aa
Show file tree
Hide file tree
Showing 45 changed files with 133 additions and 133 deletions.
4 changes: 2 additions & 2 deletions tests/Feature/Actions/StoreCustomFieldsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class StoreCustomFieldsTest extends TestCase
use RefreshDatabase;

/**
* @since 0.1.0
* @since 3.0.0
*
* @return void
* @throws Exception
Expand Down Expand Up @@ -66,7 +66,7 @@ public function testShouldStoreAsDonorMeta()
}

/**
* @since 0.1.0
* @since 3.0.0
*
* @return void
* @throws Exception
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Controllers/BlockRenderControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class BlockRenderControllerTest extends TestCase
use RefreshDatabase;

/**
* @since 0.1.0
* @since 3.0.0
*
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Controllers/DonateControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class DonateControllerTest extends TestCase
use RefreshDatabase;

/**
* @since 0.1.0
* @since 3.0.0
* @return void
* @throws Exception|DonationFormFieldErrorsException
*/
Expand Down
10 changes: 5 additions & 5 deletions tests/Feature/Controllers/FormBuilderResourceControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class FormBuilderResourceControllerTest extends TestCase
use RefreshDatabase;

/**
* @since 0.1.0
* @since 3.0.0
*
* @return void
* @throws Exception
Expand Down Expand Up @@ -51,7 +51,7 @@ public function testShowShouldReturnFormBuilderData()
}

/**
* @since 0.1.0
* @since 3.0.0
*
* @return void
* @throws Exception
Expand Down Expand Up @@ -91,7 +91,7 @@ public function testUpdateShouldReturnUpdatedFormBuilderData()
}

/**
* @since 0.1.0
* @since 3.0.0
*/
public function testUpdateShouldFailIfFormDoesNotExist()
{
Expand All @@ -108,7 +108,7 @@ public function testUpdateShouldFailIfFormDoesNotExist()
}

/**
* @since 0.1.0
* @since 3.0.0
*/
public function testShowShouldFailIfFormDoesNotExist()
{
Expand Down Expand Up @@ -230,7 +230,7 @@ public function testShowShouldFailIfBlockDataIsInvalid()

/**
*
* @since 0.1.0
* @since 3.0.0
*/
public function getMockRequest(string $method): WP_REST_Request
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class TestStripePaymentElementGateway extends TestCase
use RefreshDatabase;

/**
* @since 0.1.0
* @since 3.0.0
*
* @throws ApiErrorException
* @throws Exception
Expand Down Expand Up @@ -56,7 +56,7 @@ public function testFormSettingsShouldReturnData()
}

/**
* @since 0.1.0
* @since 3.0.0
*
* @throws \Give\Framework\Exceptions\Primitives\Exception
* @throws PaymentGatewayException
Expand Down Expand Up @@ -146,7 +146,7 @@ public function testCreatePaymentShouldReturnRespondToBrowserCommand()
}

/**
* @since 0.1.0
* @since 3.0.0
*/
protected function getMockGateway(array $methods = [])
{
Expand All @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

trait HasMockStripeAccounts {
/**
* @since 0.3.0
* @since 3.0.0
*/
public function addMockStripeAccounts()
{
Expand All @@ -29,4 +29,4 @@ public function addMockStripeAccounts()
// Set dummy default key.
give_update_option('_give_stripe_default_account', 'account_2');
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ChargeRefundedTest extends TestCase
use RefreshDatabase, HasMockStripeAccounts;

/**
* @since 0.3.0
* @since 3.0.0
*
* @throws Exception
*/
Expand Down Expand Up @@ -52,4 +52,4 @@ public function testShouldUpdateSubscriptionStatusToRefunded()

$this->assertTrue($donation->status->isRefunded());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CustomerSubscriptionDeletedTest extends TestCase
use RefreshDatabase, HasMockStripeAccounts;

/**
* @since 0.3.0
* @since 3.0.0
*
* @throws Exception
*/
Expand Down Expand Up @@ -64,4 +64,4 @@ public function testShouldUpdateSubscriptionStatusToCompleted()

$this->assertTrue($subscription->status->isCompleted());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class InvoicePaymentFailedTest extends TestCase
use RefreshDatabase, HasMockStripeAccounts;

/**
* @since 0.3.0
* @since 3.0.0
*
* @throws Exception
*/
Expand Down Expand Up @@ -88,4 +88,4 @@ function (PHPUnit_Framework_MockObject_MockBuilder $mockBuilder) {

$this->assertTrue($subscription->status->isFailing());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class InvoicePaymentSucceededTest extends TestCase
use RefreshDatabase, HasMockStripeAccounts;

/**
* @since 0.3.0
* @since 3.0.0
*
* @throws Exception
*/
Expand Down Expand Up @@ -66,7 +66,7 @@ public function testShouldUpdateDonationStatusOfInitialDonation()
}

/**
* @since 0.3.0
* @since 3.0.0
*
* @throws Exception
*/
Expand Down Expand Up @@ -115,7 +115,7 @@ public function testShouldCreateRenewal()
}

/**
* @since 0.3.0
* @since 3.0.0
*
* @throws Exception
*/
Expand Down Expand Up @@ -183,7 +183,7 @@ function (PHPUnit_Framework_MockObject_MockBuilder $mockBuilder) {
}

/**
* @since 0.3.0
* @since 3.0.0
*
* @throws Exception
*/
Expand Down Expand Up @@ -245,4 +245,4 @@ function (PHPUnit_Framework_MockObject_MockBuilder $mockBuilder) {
$this->assertCount(2, $subscription->donations);
$this->assertTrue($subscription->status->isCompleted());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class PaymentIntentFailedTest extends TestCase
use RefreshDatabase;

/**
* @since 0.3.0
* @since 3.0.0
*
* @throws Exception
*/
Expand Down Expand Up @@ -54,4 +54,4 @@ public function testShouldUpdateDonationStatus()

$this->assertTrue($donation->status->isFailed());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class PaymentIntentSucceededTest extends TestCase
use RefreshDatabase;

/**
* @since 0.3.0
* @since 3.0.0
*
* @throws Exception
*/
Expand Down Expand Up @@ -54,4 +54,4 @@ public function testShouldUpdateDonationStatus()
$this->assertTrue($donation->status->isComplete());

}
}
}
2 changes: 1 addition & 1 deletion tests/Unit/Actions/ConvertQueryDataToDonationFormTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ConvertQueryDataToDonationFormTest extends TestCase
use RefreshDatabase;

/**
* @since 0.1.0
* @since 3.0.0
*
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Actions/GenerateDonateRouteUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class GenerateDonateRouteUrlTest extends TestCase
{
/**
* @since 0.1.0
* @since 3.0.0
*
* @return void
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class GenerateDonationConfirmationReceiptUrlTest extends TestCase
use RefreshDatabase;

/**
* @since 0.1.0
* @since 3.0.0
*
* @return void
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class GenerateDonationConfirmationReceiptViewRouteUrlTest extends TestCase
{
/**
* @since 0.1.0
* @since 3.0.0
*
* @return void
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Actions/GenerateDonationFormViewRouteUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class TestDonationDetailsController extends TestCase
use RefreshDatabase;

/**
* @since 0.1.0
* @since 3.0.0
*/
public function testShowShouldReturnDonationDetailsViewRendered()
{
Expand All @@ -37,7 +37,7 @@ public function testShowShouldReturnDonationDetailsViewRendered()
}

/**
* @since 0.1.0
* @since 3.0.0
*/
public function testShowShouldReturnEmptyStringIfDonationFormIsLegacy() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function testShowShouldReturnDonorDetailsViewRendered()
}

/**
* @since 0.1.0
* @since 3.0.0
*/
public function testShowShouldReturnEmptyIfIsLegacyForm()
{
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/DataTransferObjects/BlockAttributesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -31,7 +31,7 @@ public function testShouldReturnAttributesArray()
}

/**
* @since 0.1.0
* @since 3.0.0
*
* @return void
*/
Expand Down
Loading

0 comments on commit 48da0aa

Please sign in to comment.