You are here

public function InstallFunctionsTest::testFlysystemRequirementsHandlesInvalidSchemes in Flysystem 8

Same name and namespace in other branches
  1. 3.x tests/src/Unit/InstallFunctionsTest.php \Drupal\Tests\flysystem\Unit\InstallFunctionsTest::testFlysystemRequirementsHandlesInvalidSchemes()
  2. 2.0.x tests/src/Unit/InstallFunctionsTest.php \Drupal\Tests\flysystem\Unit\InstallFunctionsTest::testFlysystemRequirementsHandlesInvalidSchemes()
  3. 3.0.x tests/src/Unit/InstallFunctionsTest.php \Drupal\Tests\flysystem\Unit\InstallFunctionsTest::testFlysystemRequirementsHandlesInvalidSchemes()

Tests flysystem_requirements() detects invalid schemes.

File

tests/src/Unit/InstallFunctionsTest.php, line 91

Class

InstallFunctionsTest
Tests flysystem.install functions.

Namespace

Drupal\Tests\flysystem\Unit

Code

public function testFlysystemRequirementsHandlesInvalidSchemes() {
  new Settings([
    'flysystem' => [
      'test_scheme' => [],
    ],
  ]);
  $requirements = flysystem_requirements('update');
  $this
    ->assertTrue(isset($requirements['flysystem_invalid_scheme']));
}