@@ -16,7 +16,7 @@ public function shouldGetMilestones()
1616 $ api = $ this ->getApiMock ();
1717 $ api ->expects ($ this ->once ())
1818 ->method ('get ' )
19- ->with ('/repos/KnpLabs/php-github-api/milestones ' , array ('page ' => 1 , 'state ' => 'open ' , 'sort ' => 'due_date ' , 'direction ' => 'desc ' ))
19+ ->with ('/repos/KnpLabs/php-github-api/milestones ' , array ('page ' => 1 , 'state ' => 'open ' , 'sort ' => 'due_date ' , 'direction ' => 'asc ' ))
2020 ->will ($ this ->returnValue ($ expectedValue ));
2121
2222 $ this ->assertEquals ($ expectedValue , $ api ->all ('KnpLabs ' , 'php-github-api ' ));
@@ -132,7 +132,7 @@ public function shouldSortByDueDateWhenSortParamNotRecognized()
132132 $ api = $ this ->getApiMock ();
133133 $ api ->expects ($ this ->once ())
134134 ->method ('get ' )
135- ->with ('/repos/KnpLabs/php-github-api/milestones ' , array ('page ' => 1 , 'state ' => 'open ' , 'sort ' => 'due_date ' , 'direction ' => 'desc ' ))
135+ ->with ('/repos/KnpLabs/php-github-api/milestones ' , array ('page ' => 1 , 'state ' => 'open ' , 'sort ' => 'due_date ' , 'direction ' => 'asc ' ))
136136 ->will ($ this ->returnValue ($ expectedValue ));
137137
138138 $ this ->assertEquals ($ expectedValue , $ api ->all ('KnpLabs ' , 'php-github-api ' , array ('sort ' => 'completenes ' )));
@@ -148,7 +148,7 @@ public function shouldSetStateToOpenWhenStateParamNotRecognized()
148148 $ api = $ this ->getApiMock ();
149149 $ api ->expects ($ this ->once ())
150150 ->method ('get ' )
151- ->with ('/repos/KnpLabs/php-github-api/milestones ' , array ('page ' => 1 , 'state ' => 'open ' , 'sort ' => 'due_date ' , 'direction ' => 'desc ' ))
151+ ->with ('/repos/KnpLabs/php-github-api/milestones ' , array ('page ' => 1 , 'state ' => 'open ' , 'sort ' => 'due_date ' , 'direction ' => 'asc ' ))
152152 ->will ($ this ->returnValue ($ expectedValue ));
153153
154154 $ this ->assertEquals ($ expectedValue , $ api ->all ('KnpLabs ' , 'php-github-api ' , array ('state ' => 'clos ' )));
@@ -164,10 +164,10 @@ public function shouldSetDirectionToDescWhenDirectionParamNotRecognized()
164164 $ api = $ this ->getApiMock ();
165165 $ api ->expects ($ this ->once ())
166166 ->method ('get ' )
167- ->with ('/repos/KnpLabs/php-github-api/milestones ' , array ('page ' => 1 , 'state ' => 'open ' , 'sort ' => 'due_date ' , 'direction ' => 'desc ' ))
167+ ->with ('/repos/KnpLabs/php-github-api/milestones ' , array ('page ' => 1 , 'state ' => 'open ' , 'sort ' => 'due_date ' , 'direction ' => 'asc ' ))
168168 ->will ($ this ->returnValue ($ expectedValue ));
169169
170- $ this ->assertEquals ($ expectedValue , $ api ->all ('KnpLabs ' , 'php-github-api ' , array ('direction ' => 'des ' )));
170+ $ this ->assertEquals ($ expectedValue , $ api ->all ('KnpLabs ' , 'php-github-api ' , array ('direction ' => 'asc ' )));
171171 }
172172
173173 /**
0 commit comments