You are here

public function FileSystemTest::providerTestBasename in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/File/FileSystemTest.php \Drupal\Tests\Core\File\FileSystemTest::providerTestBasename()

File

core/tests/Drupal/Tests/Core/File/FileSystemTest.php, line 114
Contains \Drupal\Tests\Core\File\FileSystemTest.

Class

FileSystemTest
@coversDefaultClass \Drupal\Core\File\FileSystem

Namespace

Drupal\Tests\Core\File

Code

public function providerTestBasename() {
  $data = [];
  $data[] = [
    'public://nested/dir',
    'dir',
  ];
  $data[] = [
    'public://dir/test.txt',
    'test.txt',
  ];
  $data[] = [
    'public://dir/test.txt',
    'test',
    '.txt',
  ];
  return $data;
}