Skip to content

Commit 7e902e1

Browse files
committed
Added test
1 parent ef6653e commit 7e902e1

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

test/Github/Tests/Api/Organization/MembersTest.php

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function shouldCheckIfOrganizationMember()
5757
/**
5858
* @test
5959
*/
60-
public function shouldRemoveOrganizationMember()
60+
public function shouldAddOrganizationMember()
6161
{
6262
$expectedValue = 'response';
6363

@@ -67,6 +67,22 @@ public function shouldRemoveOrganizationMember()
6767
->with('orgs/KnpLabs/members/l3l0')
6868
->will($this->returnValue($expectedValue));
6969

70+
$this->assertEquals($expectedValue, $api->add('KnpLabs', 'l3l0'));
71+
}
72+
73+
/**
74+
* @test
75+
*/
76+
public function shouldRemoveOrganizationMember()
77+
{
78+
$expectedValue = 'response';
79+
80+
$api = $this->getApiMock();
81+
$api->expects($this->once())
82+
->method('put')
83+
->with('orgs/KnpLabs/members/l3l0')
84+
->will($this->returnValue($expectedValue));
85+
7086
$this->assertEquals($expectedValue, $api->remove('KnpLabs', 'l3l0'));
7187
}
7288

0 commit comments

Comments
 (0)