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()
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
You can’t perform that action at this time.
0 commit comments