Permalink
Browse files

SOAP Tests: use a more predictable option for the preference test

Since the default value for the language has changed between 1.2 and
1.3 the user preference test is inconsistent across installations. We
now pick the bugnote_order as a less likely preference to be changed.
  • Loading branch information...
rombert committed Nov 11, 2011
1 parent 618f512 commit 8c78051590cca073d1efcd35901586c954a0e899
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/soap/UserTest.php
View
@@ -33,9 +33,9 @@ class UserTest extends SoapBase {
*/
public function testGetPreference() {
- $language = $this->client->mc_user_pref_get_pref( $this->userName, $this->password, 0 /*ALL_PROJECTS*/, 'language' );
-
- $this->assertEquals( 'auto', $language );
+ $bugnote_order = $this->client->mc_user_pref_get_pref( $this->userName, $this->password, 0 /*ALL_PROJECTS*/, 'bugnote_order' );
+
+ $this->assertEquals( 'ASC', $bugnote_order );
}
}

0 comments on commit 8c78051

Please sign in to comment.