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

testGetInitialDonationStatus()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
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