You are here

public function TestFileTransfer::isDirectory in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php \Drupal\Tests\system\Functional\FileTransfer\TestFileTransfer::isDirectory()

Checks if a particular path is a directory.

Parameters

string $path: The path to check

Return value

bool TRUE if the specified path is a directory, FALSE otherwise.

Overrides FileTransfer::isDirectory

File

core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php, line 55

Class

TestFileTransfer
Mock FileTransfer object for test case.

Namespace

Drupal\Tests\system\Functional\FileTransfer

Code

public function isDirectory($path) {
  return $this->shouldIsDirectoryReturnTrue;
}