@@ -68,7 +68,16 @@ public function shouldCreateRepositoryUsingNameOnly()
6868 $ api = $ this ->getApiMock ();
6969 $ api ->expects ($ this ->once ())
7070 ->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+ ))
7281 ->will ($ this ->returnValue ($ expectedArray ));
7382
7483 $ this ->assertEquals ($ expectedArray , $ api ->create ('l3l0Repo ' ));
@@ -84,7 +93,16 @@ public function shouldCreateRepositoryForOrganization()
8493 $ api = $ this ->getApiMock ();
8594 $ api ->expects ($ this ->once ())
8695 ->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+ ))
88106 ->will ($ this ->returnValue ($ expectedArray ));
89107
90108 $ this ->assertEquals ($ expectedArray , $ api ->create ('KnpLabsRepo ' , '' , '' , true , 'KnpLabs ' ));
@@ -228,7 +246,16 @@ public function shouldCreateUsingAllParams()
228246 $ api = $ this ->getApiMock ();
229247 $ api ->expects ($ this ->once ())
230248 ->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+ ))
232259 ->will ($ this ->returnValue ($ expectedArray ));
233260
234261 $ this ->assertEquals ($ expectedArray , $ api ->create ('l3l0Repo ' , 'test ' , 'http://l3l0.eu ' , false ));
0 commit comments