You are here

public function ModuleFunctionsTest::testFlysystemFileDownloadIgnoresInvalidScheme in Flysystem 8

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

Tests flysystem_file_download() ignores invalid schemes.

File

tests/src/Unit/ModuleFunctionsTest.php, line 90

Class

ModuleFunctionsTest
Tests module functions.

Namespace

Drupal\Tests\flysystem\Unit

Code

public function testFlysystemFileDownloadIgnoresInvalidScheme() {
  $this
    ->assertNull(flysystem_file_download('invalid://module_file/file.txt'));
}