Skip to content

[Notifier] [TurboSms] Better tests #58280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Conversation

OskarStark
Copy link
Contributor

Q A
Branch? 7.2
Bug fix? no
New feature? no
Deprecations? no
Issues Follows #58242
License MIT

Still waiting for #58242 to get unmerged, to fix also the newly introduced test.

@OskarStark OskarStark self-assigned this Sep 16, 2024
@carsonbot carsonbot added this to the 7.2 milestone Sep 16, 2024
@carsonbot carsonbot changed the title [Notifier][TurboSms] Better tests [Notifier] [TurboSms] Better tests Sep 16, 2024
@@ -128,10 +109,8 @@ public function testInvalidFrom()
$this->expectException(LengthException::class);
$this->expectExceptionMessage('The sender length of a TurboSMS message must not exceed 20 characters.');

$message = new SmsMessage('380931234567', 'Hello!');
$transport = new TurboSmsTransport('authToken', 'abcdefghijklmnopqrstu', $this->createMock(HttpClientInterface::class));
new TurboSmsTransport('authToken', 'abcdefghijklmnopqrstu', $this->createMock(HttpClientInterface::class));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the exception happens already in TurboSmsTransport::constructor(), no need to call send()

@OskarStark
Copy link
Contributor Author

Rebased and ready to merge from my side

@fabpot fabpot force-pushed the feature/better-tests branch from 86cb707 to 553951e Compare September 18, 2024 15:50
@fabpot
Copy link
Member

fabpot commented Sep 18, 2024

Thank you @OskarStark.

@fabpot fabpot merged commit fa5cd80 into symfony:7.2 Sep 18, 2024
4 of 5 checks passed
@OskarStark OskarStark deleted the feature/better-tests branch September 18, 2024 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants