You are here

public function InstallFunctionsTest::testFlysystemRequirementsHandlesInstall in Flysystem 3.x

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

Tests flysystem_requirements() handles install.

File

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

Class

InstallFunctionsTest
Tests flysystem.install functions.

Namespace

Drupal\Tests\flysystem\Unit

Code

public function testFlysystemRequirementsHandlesInstall() {
  $dependencies_exist = (int) class_exists(FlysystemStreamWrapper::class);
  $return = flysystem_requirements('install');
  $this
    ->assertSame(1 - $dependencies_exist, count($return));
}