@@ -68,7 +68,16 @@ public function shouldCreateRepositoryUsingNameOnly()
68
68
$ api = $ this ->getApiMock ();
69
69
$ api ->expects ($ this ->once ())
70
70
->method ('post ' )
71
- ->with ('user/repos ' , array ('name ' => 'l3l0Repo ' , 'description ' => '' , 'homepage ' => '' , 'private ' => false ))
71
+ ->with ('user/repos ' , array (
72
+ 'name ' => 'l3l0Repo ' ,
73
+ 'description ' => '' ,
74
+ 'homepage ' => '' ,
75
+ 'private ' => false ,
76
+ 'has_issues ' => false ,
77
+ 'has_wiki ' => false ,
78
+ 'has_downloads ' => false ,
79
+ 'auto_init ' => false
80
+ ))
72
81
->will ($ this ->returnValue ($ expectedArray ));
73
82
74
83
$ this ->assertEquals ($ expectedArray , $ api ->create ('l3l0Repo ' ));
@@ -84,7 +93,16 @@ public function shouldCreateRepositoryForOrganization()
84
93
$ api = $ this ->getApiMock ();
85
94
$ api ->expects ($ this ->once ())
86
95
->method ('post ' )
87
- ->with ('orgs/KnpLabs/repos ' , array ('name ' => 'KnpLabsRepo ' , 'description ' => '' , 'homepage ' => '' , 'private ' => false ))
96
+ ->with ('orgs/KnpLabs/repos ' , array (
97
+ 'name ' => 'KnpLabsRepo ' ,
98
+ 'description ' => '' ,
99
+ 'homepage ' => '' ,
100
+ 'private ' => false ,
101
+ 'has_issues ' => false ,
102
+ 'has_wiki ' => false ,
103
+ 'has_downloads ' => false ,
104
+ 'auto_init ' => false
105
+ ))
88
106
->will ($ this ->returnValue ($ expectedArray ));
89
107
90
108
$ this ->assertEquals ($ expectedArray , $ api ->create ('KnpLabsRepo ' , '' , '' , true , 'KnpLabs ' ));
@@ -228,7 +246,16 @@ public function shouldCreateUsingAllParams()
228
246
$ api = $ this ->getApiMock ();
229
247
$ api ->expects ($ this ->once ())
230
248
->method ('post ' )
231
- ->with ('user/repos ' , array ('name ' => 'l3l0Repo ' , 'description ' => 'test ' , 'homepage ' => 'http://l3l0.eu ' , 'private ' => true ))
249
+ ->with ('user/repos ' , array (
250
+ 'name ' => 'l3l0Repo ' ,
251
+ 'description ' => 'test ' ,
252
+ 'homepage ' => 'http://l3l0.eu ' ,
253
+ 'private ' => true ,
254
+ 'has_issues ' => false ,
255
+ 'has_wiki ' => false ,
256
+ 'has_downloads ' => false ,
257
+ 'auto_init ' => false
258
+ ))
232
259
->will ($ this ->returnValue ($ expectedArray ));
233
260
234
261
$ this ->assertEquals ($ expectedArray , $ api ->create ('l3l0Repo ' , 'test ' , 'http://l3l0.eu ' , false ));
0 commit comments