Skip to content

Commit

Permalink
minor #47193 [Notifier] Fix test logic (fabpot)
Browse files Browse the repository at this point in the history
This PR was merged into the 5.4 branch.

Discussion
----------

[Notifier] Fix test logic

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | n/a <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | n/a

This does not change anything, but the test logic is wrong here.

Commits
-------

a03c1e5fca [Notifier] Fix test logic
  • Loading branch information
xabbuh committed Aug 5, 2022
2 parents cab2651 + a22114e commit 9ee3363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/FakeSmsEmailTransportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@ public function testSendWithCustomTransport()
$this->assertSame(sprintf('New SMS on phone number: %s', $phone), $sentEmail->getSubject());
$this->assertSame($subject, $sentEmail->getTextBody());
$this->assertTrue($sentEmail->getHeaders()->has('X-Transport'));
$this->assertSame($transportName, $sentEmail->getHeaders()->get('X-Transport')->getBodyAsString());
$this->assertSame($transportName, $sentEmail->getHeaders()->get('X-Transport')->getBody());
}
}

0 comments on commit 9ee3363

Please sign in to comment.