Skip to content

Commit 3fdd771

Browse files
committed
corrected watchers test
1 parent 2ed99b2 commit 3fdd771

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Github/Tests/Api/CurrentUser/WatchersTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function shouldGetWatchers()
1919
$api = $this->getApiMock();
2020
$api->expects($this->once())
2121
->method('get')
22-
->with('user/watched')
22+
->with('user/subscriptions')
2323
->will($this->returnValue($expectedValue));
2424

2525
$this->assertEquals($expectedValue, $api->all());
@@ -33,7 +33,7 @@ public function shouldCheckWatcher()
3333
$api = $this->getApiMock();
3434
$api->expects($this->once())
3535
->method('get')
36-
->with('user/watched/l3l0/test')
36+
->with('user/subscriptions/l3l0/test')
3737
->will($this->returnValue(null));
3838

3939
$this->assertNull($api->check('l3l0', 'test'));
@@ -47,7 +47,7 @@ public function shouldWatchUser()
4747
$api = $this->getApiMock();
4848
$api->expects($this->once())
4949
->method('put')
50-
->with('user/watched/l3l0/test')
50+
->with('user/subscriptions/l3l0/test')
5151
->will($this->returnValue(null));
5252

5353
$this->assertNull($api->watch('l3l0', 'test'));
@@ -61,7 +61,7 @@ public function shouldUnwatchUser()
6161
$api = $this->getApiMock();
6262
$api->expects($this->once())
6363
->method('delete')
64-
->with('user/watched/l3l0/test')
64+
->with('user/subscriptions/l3l0/test')
6565
->will($this->returnValue(null));
6666

6767
$this->assertNull($api->unwatch('l3l0', 'test'));

0 commit comments

Comments
 (0)