function UserAuthTest::providerTestAuthenticateWithMissingCredentials

Same name in other branches
  1. 9 core/modules/user/tests/src/Unit/UserAuthTest.php \Drupal\Tests\user\Unit\UserAuthTest::providerTestAuthenticateWithMissingCredentials()
  2. 8.9.x core/modules/user/tests/src/Unit/UserAuthTest.php \Drupal\Tests\user\Unit\UserAuthTest::providerTestAuthenticateWithMissingCredentials()
  3. 11.x core/modules/user/tests/src/Unit/UserAuthTest.php \Drupal\Tests\user\Unit\UserAuthTest::providerTestAuthenticateWithMissingCredentials()

Data provider for testAuthenticateWithMissingCredentials().

Return value

array

File

core/modules/user/tests/src/Unit/UserAuthTest.php, line 111

Class

UserAuthTest
@coversDefaultClass \Drupal\user\UserAuth @group user

Namespace

Drupal\Tests\user\Unit

Code

public static function providerTestAuthenticateWithMissingCredentials() {
    return [
        [
            NULL,
            NULL,
        ],
        [
            NULL,
            '',
        ],
        [
            '',
            NULL,
        ],
        [
            '',
            '',
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.