File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
test/Github/Tests/Api/Organization Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ' ));
You can’t perform that action at this time.
0 commit comments