Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Notifier] [Line] Fix tests #48477

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
Dec 5, 2022
Merged

Conversation

OskarStark
Copy link
Contributor

@OskarStark OskarStark commented Dec 5, 2022

Q A
Branch? 6.3
Bug fix? no
New feature? no
Deprecations? no
Tickets n/a
License MIT
Doc PR n/a

Follows

cc @kurozumi

@OskarStark OskarStark self-assigned this Dec 5, 2022
@carsonbot carsonbot added this to the 6.3 milestone Dec 5, 2022
@carsonbot carsonbot changed the title [Notifier][Line] Fix tests [Notifier] [Line] Fix tests Dec 5, 2022
Comment on lines -51 to -59
public function testSendChatMessageWithMoreThan2000CharsThrowsLogicException()
{
$transport = $this->createTransport();

$this->expectException(LengthException::class);
$this->expectExceptionMessage('The subject length of a Line message must not exceed 1000 characters.');

$transport->send(new ChatMessage(str_repeat('囍', 1001)));
}
Copy link
Contributor Author

@OskarStark OskarStark Dec 5, 2022

Choose a reason for hiding this comment

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

This Test is obsolete, as we removed the check for the max subject length in the initial PR. Anyway, creating a ChatMessage with 1001 chars would never raise the limit of 2000 🤷

Lets remove this test

@OskarStark OskarStark merged commit 4785cc7 into symfony:6.3 Dec 5, 2022
@OskarStark OskarStark deleted the fix/tests-line branch December 5, 2022 10:01
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.

2 participants