@@ -111,7 +111,7 @@ public function shouldCreateGroup()
111111 $ api = $ this ->getApiMock ();
112112 $ api ->expects ($ this ->once ())
113113 ->method ('post ' )
114- ->with ('groups ' , array ('name ' => 'A new group ' , 'path ' => 'a-new-group ' , 'description ' => null , 'visibility_level ' => 0 ))
114+ ->with ('groups ' , array ('name ' => 'A new group ' , 'path ' => 'a-new-group ' , 'description ' => null , 'visibility ' => ' private ' ))
115115 ->will ($ this ->returnValue ($ expectedArray ))
116116 ;
117117
@@ -121,18 +121,18 @@ public function shouldCreateGroup()
121121 /**
122122 * @test
123123 */
124- public function shouldCreateGroupWithDescriptionAndVisLevel ()
124+ public function shouldCreateGroupWithDescriptionAndVisibility ()
125125 {
126126 $ expectedArray = array ('id ' => 1 , 'name ' => 'A new group ' , 'visibility_level ' => 2 );
127127
128128 $ api = $ this ->getApiMock ();
129129 $ api ->expects ($ this ->once ())
130130 ->method ('post ' )
131- ->with ('groups ' , array ('name ' => 'A new group ' , 'path ' => 'a-new-group ' , 'description ' => 'Description ' , 'visibility_level ' => 2 ))
131+ ->with ('groups ' , array ('name ' => 'A new group ' , 'path ' => 'a-new-group ' , 'description ' => 'Description ' , 'visibility ' => ' public ' ))
132132 ->will ($ this ->returnValue ($ expectedArray ))
133133 ;
134134
135- $ this ->assertEquals ($ expectedArray , $ api ->create ('A new group ' , 'a-new-group ' , 'Description ' , 2 ));
135+ $ this ->assertEquals ($ expectedArray , $ api ->create ('A new group ' , 'a-new-group ' , 'Description ' , ' public ' ));
136136 }
137137
138138 /**
0 commit comments