Refactor ApiTestCase to get token from ApiQueryTokens
[lhc/web/wiklou.git] / tests / phpunit / includes / api / UserWrapper.php
index d187fed..9942a0f 100644 (file)
@@ -10,10 +10,10 @@ class UserWrapper {
                $this->password = $password;
 
                $this->user = User::newFromName( $this->userName );
-               if ( !$this->user->getID() ) {
-                       $this->user = User::createNew( $this->userName, array(
+               if ( !$this->user->getId() ) {
+                       $this->user = User::createNew( $this->userName, [
                                "email" => "test@example.com",
-                               "real_name" => "Test User" ) );
+                               "real_name" => "Test User" ] );
                }
                TestUser::setPasswordForUser( $this->user, $this->password );