@@ -111,7 +111,7 @@ public function shouldCreateGroup()
111
111
$ api = $ this ->getApiMock ();
112
112
$ api ->expects ($ this ->once ())
113
113
->method ('post ' )
114
- ->with ('groups ' , array ('name ' => 'A new group ' , 'path ' => 'a-new-group ' , 'description ' => null ))
114
+ ->with ('groups ' , array ('name ' => 'A new group ' , 'path ' => 'a-new-group ' , 'description ' => null , ' visibility_level ' => 0 ))
115
115
->will ($ this ->returnValue ($ expectedArray ))
116
116
;
117
117
@@ -121,18 +121,18 @@ public function shouldCreateGroup()
121
121
/**
122
122
* @test
123
123
*/
124
- public function shouldCreateGroupWithDescription ()
124
+ public function shouldCreateGroupWithDescriptionAndVisLevel ()
125
125
{
126
- $ expectedArray = array ('id ' => 1 , 'name ' => 'A new group ' );
126
+ $ expectedArray = array ('id ' => 1 , 'name ' => 'A new group ' , ' visibility_level ' => 2 );
127
127
128
128
$ api = $ this ->getApiMock ();
129
129
$ api ->expects ($ this ->once ())
130
130
->method ('post ' )
131
- ->with ('groups ' , array ('name ' => 'A new group ' , 'path ' => 'a-new-group ' , 'description ' => 'Description ' ))
131
+ ->with ('groups ' , array ('name ' => 'A new group ' , 'path ' => 'a-new-group ' , 'description ' => 'Description ' , ' visibility_level ' => 2 ))
132
132
->will ($ this ->returnValue ($ expectedArray ))
133
133
;
134
134
135
- $ this ->assertEquals ($ expectedArray , $ api ->create ('A new group ' , 'a-new-group ' , 'Description ' ));
135
+ $ this ->assertEquals ($ expectedArray , $ api ->create ('A new group ' , 'a-new-group ' , 'Description ' , 2 ));
136
136
}
137
137
138
138
/**
0 commit comments