function SettingsTest::providerTestGetHashSaltEmpty

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::providerTestGetHashSaltEmpty()
  2. 8.9.x core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::providerTestGetHashSaltEmpty()
  3. 11.x core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::providerTestGetHashSaltEmpty()

Data provider for testGetHashSaltEmpty.

Return value

array

File

core/tests/Drupal/Tests/Core/Site/SettingsTest.php, line 104

Class

SettingsTest
@coversDefaultClass \Drupal\Core\Site\Settings[[api-linebreak]] @runTestsInSeparateProcesses @group Site

Namespace

Drupal\Tests\Core\Site

Code

public static function providerTestGetHashSaltEmpty() {
  return [
    [
      [],
    ],
    [
      [
        'hash_salt' => '',
      ],
    ],
    [
      [
        'hash_salt' => NULL,
      ],
    ],
  ];
}

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