Commit fe8a2de
committed
minor symfony#61360 [Mailer] Fix expected exception message to include quotes around "http(s)://" (santysisi)
This PR was merged into the 7.4 branch.
Discussion
----------
[Mailer] Fix expected exception message to include quotes around "http(s)://"
| Q | A
| ------------- | ---
| Branch? | 7.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | no
| License | MIT
### What does this PR do?
This PR updates a test assertion to match the actual exception message being thrown in the code.
The test was previously expecting the message:
`<failingType> endpoint needs to be provided without http(s)://.`
But the actual exception thrown is:
`<failingType> endpoint needs to be provided without "http(s)://".`
The discrepancy caused the test to fail. This fix ensures the test correctly reflects the expected output, including the necessary double quotes.
### Changes made
- Updated `$this->expectExceptionMessage(...)` to include the quoted string `"http(s)://"`.
No other logic or behavior has been changed.
### References
* [MicrosoftGraphTransportFactory.php#L47-L53](https://github.com/symfony/symfony/blob/7.4/src/Symfony/Component/Mailer/Bridge/MicrosoftGraph/Transport/MicrosoftGraphTransportFactory.php#L47-L53)
The exception is thrown with `"http(s)://"` in quotes.
* [MicrosoftGraphTransportFactoryTest.php#L87](https://github.com/symfony/symfony/blob/7.4/src/Symfony/Component/Mailer/Bridge/MicrosoftGraph/Tests/Transport/MicrosoftGraphTransportFactoryTest.php#L87)
The test incorrectly expects the message without quotes.
Commits
-------
e4398e6 [Mailer] Fix expected exception message to include quotes around "http(s)://"File tree
1 file changed
+1
-1
lines changed- src/Symfony/Component/Mailer/Bridge/MicrosoftGraph/Tests/Transport
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
0 commit comments