Skip to content

Commit 7f4b9e0

Browse files
authored
Merge pull request #162 from wmde/add-covers-tags
Add coverage tags
2 parents 8783c23 + b488284 commit 7f4b9e0

File tree

11 files changed

+24
-1
lines changed

11 files changed

+24
-1
lines changed

src/Commands/CreateSubscriptionPlansCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
use WMDE\Fundraising\PaymentContext\UseCases\CreateSubscriptionPlansForProduct\ErrorResult;
1818
use WMDE\Fundraising\PaymentContext\UseCases\CreateSubscriptionPlansForProduct\SuccessResult;
1919

20+
/**
21+
* @codeCoverageIgnore
22+
*/
2023
#[AsCommand(
2124
name: 'app:create-subscription-plans',
2225
description: 'Create subscription plan for recurring payments with PayPal.',

src/Commands/ListSubscriptionPlansCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
use Symfony\Component\Console\Output\OutputInterface;
1212
use WMDE\Fundraising\PaymentContext\Services\PayPal\PaypalAPI;
1313

14+
/**
15+
* @codeCoverageIgnore
16+
*/
1417
#[AsCommand(
1518
name: 'app:list-subscription-plans',
1619
description: 'Lists existing PayPal subscription plans.',

src/PaymentContextFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
use Doctrine\DBAL\Connection;
88
use Doctrine\DBAL\Types\Type;
99

10+
/**
11+
* @codeCoverageIgnore
12+
*/
1013
class PaymentContextFactory {
1114

1215
private const DOCTRINE_CLASS_MAPPING_DIRECTORY = __DIR__ . '/../config/DoctrineClassMapping';

tests/System/Services/ExternalVerificationService/PayPal/PayPalVerificationServiceTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
/**
1616
* @covers \WMDE\Fundraising\PaymentContext\Services\ExternalVerificationService\PayPal\PayPalVerificationService
17+
* @covers \WMDE\Fundraising\PaymentContext\UseCases\BookPayment\VerificationResponse
1718
*/
1819
class PayPalVerificationServiceTest extends TestCase {
1920

tests/Unit/Domain/Model/BookingDataTransformers/CreditCardBookingTransformerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
/**
1313
* @covers \WMDE\Fundraising\PaymentContext\Domain\Model\BookingDataTransformers\CreditCardBookingTransformer
14+
* @covers \WMDE\Fundraising\PaymentContext\Domain\Model\ValuationDateTimeZone
1415
*/
1516
class CreditCardBookingTransformerTest extends TestCase {
1617

tests/Unit/Domain/Model/BookingDataTransformers/PayPalBookingTransformerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
/**
1313
* @covers \WMDE\Fundraising\PaymentContext\Domain\Model\BookingDataTransformers\PayPalBookingTransformer
14+
* @covers \WMDE\Fundraising\PaymentContext\Domain\Model\ValuationDateTimeZone
1415
*/
1516
class PayPalBookingTransformerTest extends TestCase {
1617

tests/Unit/Services/PayPal/PayPalPaymentProviderAdapterTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
/**
3131
* @covers \WMDE\Fundraising\PaymentContext\Services\PayPal\PayPalPaymentProviderAdapter
3232
* @covers \WMDE\Fundraising\PaymentContext\Services\PayPal\PayPalPaymentProviderAdapterConfig
33+
* @covers \WMDE\Fundraising\PaymentContext\Domain\UrlGenerator\DomainSpecificContext
3334
*/
3435
class PayPalPaymentProviderAdapterTest extends TestCase {
3536
private const ORDER_ID = 'SOME-ORDER-ID';

tests/Unit/Services/PaymentUrlGenerator/CreditCardURLGeneratorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare( strict_types = 1 );
44

5-
namespace Unit\Services\PaymentUrlGenerator;
5+
namespace WMDE\Fundraising\PaymentContext\Tests\Unit\Services\PaymentUrlGenerator;
66

77
use PHPUnit\Framework\TestCase;
88
use WMDE\Euro\Euro;
@@ -16,6 +16,7 @@
1616

1717
/**
1818
* @covers \WMDE\Fundraising\PaymentContext\Services\PaymentUrlGenerator\CreditCardURLGenerator
19+
* @covers \WMDE\Fundraising\PaymentContext\Domain\UrlGenerator\DomainSpecificContext
1920
*/
2021
class CreditCardURLGeneratorTest extends TestCase {
2122

tests/Unit/UseCases/CreateBookedPayPalPaymentUseCase/CreateBookedPayPalPaymentUseCaseTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919

2020
/**
2121
* @covers \WMDE\Fundraising\PaymentContext\UseCases\CreateBookedPayPalPayment\CreateBookedPayPalPaymentUseCase
22+
* @covers \WMDE\Fundraising\PaymentContext\UseCases\CreateBookedPayPalPayment\FailingPaymentIdRepository
23+
* @covers \WMDE\Fundraising\PaymentContext\UseCases\CreateBookedPayPalPayment\FailureResponse
24+
* @covers \WMDE\Fundraising\PaymentContext\UseCases\CreateBookedPayPalPayment\SuccessResponse
2225
*/
2326
class CreateBookedPayPalPaymentUseCaseTest extends TestCase {
2427
private const PAYMENT_ID = 5;

tests/Unit/UseCases/CreatePayment/CreatePaymentUseCaseTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@
3232

3333
/**
3434
* @covers \WMDE\Fundraising\PaymentContext\UseCases\CreatePayment\CreatePaymentUseCase
35+
* @covers \WMDE\Fundraising\PaymentContext\UseCases\CreatePayment\FailureResponse
3536
* @covers \WMDE\Fundraising\PaymentContext\UseCases\CreatePayment\PaymentCreationRequest
3637
* @covers \WMDE\Fundraising\PaymentContext\UseCases\CreatePayment\PaymentCreationException
38+
* @covers \WMDE\Fundraising\PaymentContext\UseCases\CreatePayment\SuccessResponse
39+
* @covers \WMDE\Fundraising\PaymentContext\Domain\UrlGenerator\DomainSpecificContext
3740
*/
3841
class CreatePaymentUseCaseTest extends TestCase {
3942

0 commit comments

Comments
 (0)