Merge "Revert "Log the reason why revision->getContent() returns null""
[lhc/web/wiklou.git] / tests / phpunit / includes / password / UserPasswordPolicyTest.php
index 3bd82b4..78175fa 100644 (file)
@@ -26,6 +26,8 @@
  */
 class UserPasswordPolicyTest extends MediaWikiTestCase {
 
+       protected $tablesUsed = [ 'user', 'user_groups' ];
+
        protected $policies = [
                'checkuser' => [
                        'MinimalPasswordLength' => 10,
@@ -58,7 +60,6 @@ class UserPasswordPolicyTest extends MediaWikiTestCase {
        }
 
        public function testGetPoliciesForUser() {
-
                $upp = $this->getUserPasswordPolicy();
 
                $user = User::newFromName( 'TestUserPolicy' );
@@ -100,7 +101,6 @@ class UserPasswordPolicyTest extends MediaWikiTestCase {
         * @dataProvider provideCheckUserPassword
         */
        public function testCheckUserPassword( $username, $groups, $password, $valid, $ok, $msg ) {
-
                $upp = $this->getUserPasswordPolicy();
 
                $user = User::newFromName( $username );