Completed
Pull Request — master (#650)
by Jeroen De
19:07 queued 01:42
created
tests/Unit/Infrastructure/DonationConfirmationMailerTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare( strict_types = 1 );
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace WMDE\Fundraising\Frontend\Tests\Unit\Infrastructure;
6 6
 
@@ -22,29 +22,29 @@  discard block
 block discarded – undo
22 22
 	const DONATION_ID = 42;
23 23
 
24 24
 	public function testMailerExtractsEmailFromDonation() {
25
-		$mailer = new TemplateBasedMailerSpy( $this );
25
+		$mailer = new TemplateBasedMailerSpy($this);
26 26
 
27
-		$donationMailer = new \WMDE\Fundraising\Frontend\DonationContext\Infrastructure\DonationConfirmationMailer( $mailer );
28
-		$donationMailer->sendConfirmationMailFor( $this->newDonation() );
27
+		$donationMailer = new \WMDE\Fundraising\Frontend\DonationContext\Infrastructure\DonationConfirmationMailer($mailer);
28
+		$donationMailer->sendConfirmationMailFor($this->newDonation());
29 29
 
30 30
 		$mailer->assertCalledOnce();
31 31
 		$this->assertEquals(
32
-			new EmailAddress( ValidDonation::DONOR_EMAIL_ADDRESS ),
32
+			new EmailAddress(ValidDonation::DONOR_EMAIL_ADDRESS),
33 33
 			$mailer->getSendMailCalls()[0][0]
34 34
 		);
35 35
 	}
36 36
 
37 37
 	private function newDonation(): Donation {
38 38
 		$donation = ValidDonation::newBankTransferDonation();
39
-		$donation->assignId( self::DONATION_ID );
39
+		$donation->assignId(self::DONATION_ID);
40 40
 		return $donation;
41 41
 	}
42 42
 
43 43
 	public function testMailerAssemblesTemplateData() {
44
-		$mailer = new TemplateBasedMailerSpy( $this );
44
+		$mailer = new TemplateBasedMailerSpy($this);
45 45
 
46
-		$donationMailer = new DonationConfirmationMailer( $mailer );
47
-		$donationMailer->sendConfirmationMailFor( $this->newDonation() );
46
+		$donationMailer = new DonationConfirmationMailer($mailer);
47
+		$donationMailer->sendConfirmationMailFor($this->newDonation());
48 48
 
49 49
 		$mailer->assertCalledOnce();
50 50
 		$this->assertEquals(
Please login to merge, or discard this patch.