@@ -16,7 +16,7 @@ public function shouldGetMilestones()
16
16
$ api = $ this ->getApiMock ();
17
17
$ api ->expects ($ this ->once ())
18
18
->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 ' ))
20
20
->will ($ this ->returnValue ($ expectedValue ));
21
21
22
22
$ this ->assertEquals ($ expectedValue , $ api ->all ('KnpLabs ' , 'php-github-api ' ));
@@ -132,7 +132,7 @@ public function shouldSortByDueDateWhenSortParamNotRecognized()
132
132
$ api = $ this ->getApiMock ();
133
133
$ api ->expects ($ this ->once ())
134
134
->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 ' ))
136
136
->will ($ this ->returnValue ($ expectedValue ));
137
137
138
138
$ this ->assertEquals ($ expectedValue , $ api ->all ('KnpLabs ' , 'php-github-api ' , array ('sort ' => 'completenes ' )));
@@ -148,7 +148,7 @@ public function shouldSetStateToOpenWhenStateParamNotRecognized()
148
148
$ api = $ this ->getApiMock ();
149
149
$ api ->expects ($ this ->once ())
150
150
->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 ' ))
152
152
->will ($ this ->returnValue ($ expectedValue ));
153
153
154
154
$ this ->assertEquals ($ expectedValue , $ api ->all ('KnpLabs ' , 'php-github-api ' , array ('state ' => 'clos ' )));
@@ -164,10 +164,10 @@ public function shouldSetDirectionToDescWhenDirectionParamNotRecognized()
164
164
$ api = $ this ->getApiMock ();
165
165
$ api ->expects ($ this ->once ())
166
166
->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 ' ))
168
168
->will ($ this ->returnValue ($ expectedValue ));
169
169
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 ' )));
171
171
}
172
172
173
173
/**
0 commit comments