@@ -121,35 +121,35 @@ public function shouldCreateGroup()
121
121
/**
122
122
* @test
123
123
*/
124
- public function shouldCreateGroupWithDescriptionVisibilityAndParentId ()
124
+ public function shouldCreateGroupWithDescriptionAndVisibility ()
125
125
{
126
- $ expectedArray = array ('id ' => 1 , 'name ' => 'A new group ' , 'visibility_level ' => 2 , ' parent_id ' => 666 );
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
- ->method ('post ' )
131
- ->with ('groups ' , array ('name ' => 'A new group ' , 'path ' => 'a-new-group ' , 'description ' => 'Description ' , 'visibility ' => 'public ' , ' parent_id ' => 666 ))
132
- ->will ($ this ->returnValue ($ expectedArray ))
130
+ ->method ('post ' )
131
+ ->with ('groups ' , array ('name ' => 'A new group ' , 'path ' => 'a-new-group ' , 'description ' => 'Description ' , 'visibility ' => 'public ' ))
132
+ ->will ($ this ->returnValue ($ expectedArray ))
133
133
;
134
134
135
- $ this ->assertEquals ($ expectedArray , $ api ->create ('A new group ' , 'a-new-group ' , 'Description ' , 'public ' , null , null , 666 ));
135
+ $ this ->assertEquals ($ expectedArray , $ api ->create ('A new group ' , 'a-new-group ' , 'Description ' , 'public ' ));
136
136
}
137
137
138
138
/**
139
139
* @test
140
140
*/
141
- public function shouldCreateGroupWithDescriptionAndVisibility ()
141
+ public function shouldCreateGroupWithDescriptionVisibilityAndParentId ()
142
142
{
143
- $ expectedArray = array ('id ' => 1 , 'name ' => 'A new group ' , 'visibility_level ' => 2 );
143
+ $ expectedArray = array ('id ' => 1 , 'name ' => 'A new group ' , 'visibility_level ' => 2 , ' parent_id ' => 666 );
144
144
145
145
$ api = $ this ->getApiMock ();
146
146
$ api ->expects ($ this ->once ())
147
147
->method ('post ' )
148
- ->with ('groups ' , array ('name ' => 'A new group ' , 'path ' => 'a-new-group ' , 'description ' => 'Description ' , 'visibility ' => 'public ' ))
148
+ ->with ('groups ' , array ('name ' => 'A new group ' , 'path ' => 'a-new-group ' , 'description ' => 'Description ' , 'visibility ' => 'public ' , ' parent_id ' => 666 ))
149
149
->will ($ this ->returnValue ($ expectedArray ))
150
150
;
151
151
152
- $ this ->assertEquals ($ expectedArray , $ api ->create ('A new group ' , 'a-new-group ' , 'Description ' , 'public ' ));
152
+ $ this ->assertEquals ($ expectedArray , $ api ->create ('A new group ' , 'a-new-group ' , 'Description ' , 'public ' , null , null , 666 ));
153
153
}
154
154
155
155
/**
0 commit comments