Merge "Add SPARQL client to core"
[lhc/web/wiklou.git] / tests / phpunit / includes / password / LayeredParameterizedPasswordTest.php
index 773f033..6a965a0 100644 (file)
@@ -1,10 +1,14 @@
 <?php
 
+/**
+ * @covers LayeredParameterizedPassword
+ * @covers Password
+ */
 class LayeredParameterizedPasswordTest extends PasswordTestCase {
        protected function getTypeConfigs() {
                return [
                        'testLargeLayeredTop' => [
-                               'class' => 'LayeredParameterizedPassword',
+                               'class' => LayeredParameterizedPassword::class,
                                'types' => [
                                        'testLargeLayeredBottom',
                                        'testLargeLayeredBottom',
@@ -14,28 +18,32 @@ class LayeredParameterizedPasswordTest extends PasswordTestCase {
                                ],
                        ],
                        'testLargeLayeredBottom' => [
-                               'class' => 'Pbkdf2Password',
+                               'class' => Pbkdf2Password::class,
                                'algo' => 'sha512',
                                'cost' => 1024,
                                'length' => 512,
                        ],
                        'testLargeLayeredFinal' => [
-                               'class' => 'BcryptPassword',
+                               'class' => BcryptPassword::class,
                                'cost' => 5,
                        ]
                ];
        }
 
+       protected function getValidTypes() {
+               return [ 'testLargeLayeredFinal' ];
+       }
+
        public static function providePasswordTests() {
-               // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong
+               // phpcs:disable Generic.Files.LineLength
                return [
                        [
                                true,
                                ':testLargeLayeredTop:sha512:1024:512!sha512:1024:512!sha512:1024:512!sha512:1024:512!5!vnRy+2SrSA0fHt3dwhTP5g==!AVnwfZsAQjn+gULv7FSGjA==!xvHUX3WcpkeSn1lvjWcvBg==!It+OC/N9tu+d3ByHhuB0BQ==!Tb.gqUOiD.aWktVwHM.Q/O!7CcyMfXUPky5ptyATJsR2nq3vUqtnBC',
-                               'testPassword123' 
+                               'testPassword123'
                        ],
                ];
-               // @codingStandardsIgnoreEnd
+               // phpcs:enable
        }
 
        /**