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()
63
63
64
64
$ api = $ this ->getApiMock ();
65
65
$ api ->expects ($ this ->once ())
66
- ->method ('delete ' )
67
- ->with ('orgs/KnpLabs/members /l3l0 ' )
66
+ ->method ('put ' )
67
+ ->with ('orgs/KnpLabs/memberships /l3l0 ' )
68
68
->will ($ this ->returnValue ($ expectedValue ));
69
69
70
70
$ this ->assertEquals ($ expectedValue , $ api ->add ('KnpLabs ' , 'l3l0 ' ));
@@ -79,8 +79,8 @@ public function shouldRemoveOrganizationMember()
79
79
80
80
$ api = $ this ->getApiMock ();
81
81
$ api ->expects ($ this ->once ())
82
- ->method ('put ' )
83
- ->with ('orgs/KnpLabs/members /l3l0 ' )
82
+ ->method ('delete ' )
83
+ ->with ('orgs/KnpLabs/memberships /l3l0 ' )
84
84
->will ($ this ->returnValue ($ expectedValue ));
85
85
86
86
$ this ->assertEquals ($ expectedValue , $ api ->remove ('KnpLabs ' , 'l3l0 ' ));
You can’t perform that action at this time.
0 commit comments