Skip to content

Commit 39118bd

Browse files
m1guelpfNyholm
authored andcommitted
Add tests for notification by id (#490)
* Add tests for notification by id
1 parent 893908e commit 39118bd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/Github/Tests/Api/NotificationTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,17 @@ public function shouldMarkNotificationsAsReadForGivenDate()
9696

9797
$api->markRead($since);
9898
}
99+
100+
public function shouldGetNotification()
101+
{
102+
$id = mt_rand(1, time());
103+
$api = $this->getApiMock();
104+
$api->expects($this->once())
105+
->method('get')
106+
->with('/notification/'.$id);
107+
108+
$api->id($id);
109+
}
99110

100111
/**
101112
* @return string

0 commit comments

Comments
 (0)