Skip to content

Commit f225ffd

Browse files
committed
Memberships, not members
1 parent 7e902e1 commit f225ffd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public function shouldAddOrganizationMember()
6363

6464
$api = $this->getApiMock();
6565
$api->expects($this->once())
66-
->method('delete')
67-
->with('orgs/KnpLabs/members/l3l0')
66+
->method('put')
67+
->with('orgs/KnpLabs/memberships/l3l0')
6868
->will($this->returnValue($expectedValue));
6969

7070
$this->assertEquals($expectedValue, $api->add('KnpLabs', 'l3l0'));
@@ -79,8 +79,8 @@ public function shouldRemoveOrganizationMember()
7979

8080
$api = $this->getApiMock();
8181
$api->expects($this->once())
82-
->method('put')
83-
->with('orgs/KnpLabs/members/l3l0')
82+
->method('delete')
83+
->with('orgs/KnpLabs/memberships/l3l0')
8484
->will($this->returnValue($expectedValue));
8585

8686
$this->assertEquals($expectedValue, $api->remove('KnpLabs', 'l3l0'));

0 commit comments

Comments
 (0)