Skip to content

Commit 0a19add

Browse files
committed
Updated ReviewRequestTest create & remove tests
1 parent f2ce0d9 commit 0a19add

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Github/Tests/Api/PullRequest/ReviewRequestTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ public function shouldCreateReviewRequest()
3535
$api = $this->getApiMock();
3636
$api->expects($this->once())
3737
->method('post')
38-
->with('/repos/octocat/Hello-World/pulls/12/requested_reviewers', ['reviewers' => ['testuser']])
38+
->with('/repos/octocat/Hello-World/pulls/12/requested_reviewers', ['reviewers' => ['testuser'], 'team_reviewers' => ['testteam']])
3939
;
4040

41-
$api->create('octocat', 'Hello-World', 12, ['testuser']);
41+
$api->create('octocat', 'Hello-World', 12, ['testuser'], ['testteam']);
4242
}
4343

4444
/**
@@ -49,10 +49,10 @@ public function shouldDeleteReviewRequest()
4949
$api = $this->getApiMock();
5050
$api->expects($this->once())
5151
->method('delete')
52-
->with('/repos/octocat/Hello-World/pulls/12/requested_reviewers', ['reviewers' => ['testuser']])
52+
->with('/repos/octocat/Hello-World/pulls/12/requested_reviewers', ['reviewers' => ['testuser'], 'team_reviewers' => ['testteam']])
5353
;
5454

55-
$api->remove('octocat', 'Hello-World', 12, ['testuser']);
55+
$api->remove('octocat', 'Hello-World', 12, ['testuser'], ['testteam']);
5656
}
5757

5858
/**

0 commit comments

Comments
 (0)