@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare( strict_types = 1 ); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace WMDE\Fundraising\AddressChangeContext\Tests; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare( strict_types = 1 ); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace WMDE\Fundraising\AddressChangeContext\Tests\Unit\Domain\Model; |
6 | 6 | |
@@ -79,23 +79,23 @@ discard block |
||
79 | 79 | * @return \Generator<string[]> |
80 | 80 | */ |
81 | 81 | public function emptyPersonFieldTestProvider(): \Generator { |
82 | - yield [ 'Salutation', '', 'Prof. Dr.', 'Testdude', 'Testfamily', 'Test Address 123', '12345', 'Test City', 'Test Country' ]; |
|
83 | - yield [ 'First Name', 'Herr', 'Prof. Dr.', '', 'Testfamily', 'Test Address 123', '12345', 'Test City', 'Test Country' ]; |
|
84 | - yield [ 'Last Name', 'Herr', 'Prof. Dr.', 'Testdude', '', 'Test Address 123', '12345', 'Test City', 'Test Country' ]; |
|
85 | - yield [ 'Address', 'Herr', 'Prof. Dr.', 'Testdude', 'Testfamily', '', '12345', 'Test City', 'Test Country' ]; |
|
86 | - yield [ 'Post Code', 'Herr', 'Prof. Dr.', 'Testdude', 'Testfamily', 'Test Address 123', '', 'Test City', 'Test Country' ]; |
|
87 | - yield [ 'City', 'Herr', 'Prof. Dr.', 'Testdude', 'Testfamily', 'Test Address 123', '12345', '', 'Test Country' ]; |
|
88 | - yield [ 'Country', 'Herr', 'Prof. Dr.', 'Testdude', 'Testfamily', 'Test Address 123', '12345', 'Test City', '' ]; |
|
82 | + yield ['Salutation', '', 'Prof. Dr.', 'Testdude', 'Testfamily', 'Test Address 123', '12345', 'Test City', 'Test Country']; |
|
83 | + yield ['First Name', 'Herr', 'Prof. Dr.', '', 'Testfamily', 'Test Address 123', '12345', 'Test City', 'Test Country']; |
|
84 | + yield ['Last Name', 'Herr', 'Prof. Dr.', 'Testdude', '', 'Test Address 123', '12345', 'Test City', 'Test Country']; |
|
85 | + yield ['Address', 'Herr', 'Prof. Dr.', 'Testdude', 'Testfamily', '', '12345', 'Test City', 'Test Country']; |
|
86 | + yield ['Post Code', 'Herr', 'Prof. Dr.', 'Testdude', 'Testfamily', 'Test Address 123', '', 'Test City', 'Test Country']; |
|
87 | + yield ['City', 'Herr', 'Prof. Dr.', 'Testdude', 'Testfamily', 'Test Address 123', '12345', '', 'Test Country']; |
|
88 | + yield ['Country', 'Herr', 'Prof. Dr.', 'Testdude', 'Testfamily', 'Test Address 123', '12345', 'Test City', '']; |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
92 | 92 | * @return \Generator<string[]> |
93 | 93 | */ |
94 | 94 | public function emptyCompanyFieldTestProvider(): \Generator { |
95 | - yield [ 'Company', '', 'Test Street 123', '12345', 'Test City', 'Test Country' ]; |
|
96 | - yield [ 'Address', 'Test Company', '', '12345', 'Test City', 'Test Country' ]; |
|
97 | - yield [ 'Post Code', 'Test Company', 'Test Street 123', '', 'Test City', 'Test Country' ]; |
|
98 | - yield [ 'City', 'Test Company', 'Test Street 123', '12345', '', 'Test Country' ]; |
|
99 | - yield [ 'Country', 'Test Company', 'Test Street 123', '12345', 'Test City', '' ]; |
|
95 | + yield ['Company', '', 'Test Street 123', '12345', 'Test City', 'Test Country']; |
|
96 | + yield ['Address', 'Test Company', '', '12345', 'Test City', 'Test Country']; |
|
97 | + yield ['Post Code', 'Test Company', 'Test Street 123', '', 'Test City', 'Test Country']; |
|
98 | + yield ['City', 'Test Company', 'Test Street 123', '12345', '', 'Test Country']; |
|
99 | + yield ['Country', 'Test Company', 'Test Street 123', '12345', 'Test City', '']; |
|
100 | 100 | } |
101 | 101 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare( strict_types = 1 ); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace WMDE\Fundraising\AddressChangeContext\Tests\Unit\Domain\Model; |
6 | 6 | |
@@ -31,10 +31,10 @@ discard block |
||
31 | 31 | * @return \Generator<string[]> |
32 | 32 | */ |
33 | 33 | public function invalidUUIDProvider(): \Generator { |
34 | - yield [ '' ]; |
|
35 | - yield [ 'just a string' ]; |
|
36 | - yield [ '1111222233334444-1111222233334444-1111222233334444-1111222233334444-1111222233334444' ]; |
|
37 | - yield [ 'e-f-f-e-d' ]; |
|
38 | - yield [ 'This-is-not-a-UUID' ]; |
|
34 | + yield ['']; |
|
35 | + yield ['just a string']; |
|
36 | + yield ['1111222233334444-1111222233334444-1111222233334444-1111222233334444-1111222233334444']; |
|
37 | + yield ['e-f-f-e-d']; |
|
38 | + yield ['This-is-not-a-UUID']; |
|
39 | 39 | } |
40 | 40 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare( strict_types=1 ); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace WMDE\Fundraising\AddressChangeContext\Tests\Unit\UseCases; |
5 | 5 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare( strict_types = 1 ); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace WMDE\Fundraising\AddressChangeContext\Tests\Unit\UseCases; |
6 | 6 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $useCase = new ChangeAddressUseCase( $mockAddressChangeRepository ); |
50 | 50 | $response = $useCase->changeAddress( $this->newChangeAddressRequest() ); |
51 | 51 | $this->assertFalse( $response->isSuccess() ); |
52 | - $this->assertEquals( [ ChangeAddressResponse::ERROR_ADDRESS_NOT_FOUND ], $response->getErrors() ); |
|
52 | + $this->assertEquals( [ChangeAddressResponse::ERROR_ADDRESS_NOT_FOUND], $response->getErrors() ); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | public function testGivenValidOptOutOnlyChangeRequest_successResponseIsReturned(): void { |