-
-
Notifications
You must be signed in to change notification settings - Fork 597
Add tests for notification by id #490
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
Conversation
@@ -96,6 +96,16 @@ public function shouldMarkNotificationsAsReadForGivenDate() | |||
|
|||
$api->markRead($since); | |||
} | |||
public function shouldGetNotification() | |||
{ | |||
$id = id; |
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.
How do I get a ramdom id there?
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.
mt_rand(1, time());
:)
@sergeyklay Would this work? |
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.
Looks good. Just have some minor comments.
public function shouldGetNotification() | ||
{ | ||
$id = mt_rand(1, time()); | ||
; |
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.
Remove extra semicolon.
@@ -96,6 +96,17 @@ public function shouldMarkNotificationsAsReadForGivenDate() | |||
|
|||
$api->markRead($since); | |||
} | |||
public function shouldGetNotification() |
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.
Add blank line between functions
@Nyholm Done |
Awesome. Thanks! |
Add tests for #489