-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add isreadby isread methods to message model #7
Add isreadby isread methods to message model #7
Conversation
tests/Unit/ConversationTest.php
Outdated
} | ||
} | ||
|
||
public function testUnreadBy() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public function testUnreadBy() | |
public function testUnreadBy(): void |
tests/Unit/MessageTest.php
Outdated
private string $senderId; | ||
|
||
private array $messages; | ||
|
||
private Message $message1; | ||
|
||
private Message $message2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra spacing is not really required.. lets trim it down.
private string $senderId; | |
private array $messages; | |
private Message $message1; | |
private Message $message2; | |
private string $senderId; | |
private array $messages; | |
private Message $message1; | |
private Message $message2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how it is formatted in the other files, that's why I added it here. But completely agree it looks better without spaces.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor changes but elsewise good :)
Added some helpful methods to the Messages and Conversation models.
Message:
Conversation:
Updated the testing to have Unit tests along with the Feature tests.