Completed
Push — master ( 6d48a0...fb36d6 )
by Jeroen De
14s
created

MailTemplateFilenameTraversableTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testTraversableContainsSomeEntriesInTheRightFormat() 0 8 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace WMDE\Fundraising\Frontend\Tests\Integration;
6
7
use WMDE\Fundraising\Frontend\Tests\TestEnvironment;
8
9
/**
10
 * @licence GNU GPL v2+
11
 * @author Jeroen De Dauw < [email protected] >
12
 */
13
class MailTemplateFilenameTraversableTest extends \PHPUnit\Framework\TestCase {
14
15
	public function testTraversableContainsSomeEntriesInTheRightFormat() {
16
		$mailTemplatePaths = TestEnvironment::newInstance()->getFactory()->newMailTemplateFilenameTraversable();
17
18
		$pathArray = iterator_to_array( $mailTemplatePaths );
19
20
		$this->assertContains( 'Mail_Contact_Confirm_to_User.txt.twig', $pathArray );
21
		$this->assertContains( 'Mail_Subscription_Request.txt.twig', $pathArray );
22
	}
23
24
}
25
26