File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
test/Github/Tests/Api/Organization Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public function shouldCheckIfOrganizationMember()
57
57
/**
58
58
* @test
59
59
*/
60
- public function shouldRemoveOrganizationMember ()
60
+ public function shouldAddOrganizationMember ()
61
61
{
62
62
$ expectedValue = 'response ' ;
63
63
@@ -67,6 +67,22 @@ public function shouldRemoveOrganizationMember()
67
67
->with ('orgs/KnpLabs/members/l3l0 ' )
68
68
->will ($ this ->returnValue ($ expectedValue ));
69
69
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
+
70
86
$ this ->assertEquals ($ expectedValue , $ api ->remove ('KnpLabs ' , 'l3l0 ' ));
71
87
}
72
88
You can’t perform that action at this time.
0 commit comments