Completed
Push — master ( 25648a...558e7e )
by Jeroen De
14s
created

InitialDonationStatusPickerTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetInitialDonationStatus() 0 10 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace WMDE\Fundraising\Frontend\Tests\Unit\DonationContext\UseCases\AddDonation;
6
7
use PHPUnit\Framework\TestCase;
8
use WMDE\Fundraising\Frontend\DonationContext\UseCases\AddDonation\InitialDonationStatusPicker;
9
10
/**
11
 * @covers \WMDE\Fundraising\Frontend\DonationContext\UseCases\AddDonation\InitialDonationStatusPicker
12
 */
13
class InitialDonationStatusPickerTest extends TestCase {
14
	public function testGetInitialDonationStatus(): void {
15
		$picker = new InitialDonationStatusPicker();
16
17
		$this->assertSame( 'N', $picker( 'BEZ' ) );
18
		$this->assertSame( 'Z', $picker( 'UEB' ) );
19
		$this->assertSame( 'Z', $picker( 'SUB' ) );
20
21
		$this->assertSame( 'X', $picker( 'MCP' ) );
22
		$this->assertSame( 'X', $picker( 'foo' ) );
23
	}
24
}
25