protected function S3fsDrushTest::setUp in S3 File System 8.3
Same name and namespace in other branches
- 4.0.x tests/src/Functional/S3fsDrushTest.php \Drupal\Tests\s3fs\Functional\S3fsDrushTest::setUp()
Overrides S3fsTestBase::setUp
File
- tests/
src/ Functional/ S3fsDrushTest.php, line 30
Class
- S3fsDrushTest
- S3 File System Tests.
Namespace
Drupal\Tests\s3fs\FunctionalCode
protected function setUp() : void {
parent::setUp();
$file_contents = file_get_contents(__DIR__ . '/../../fixtures/test.txt');
$test_uri1 = "public://drush/test_file1.txt";
$test_uri2 = "public://drush/test_file2.txt";
$test_uri3 = "private://drush/test_private_file1.txt";
$test_uri4 = "private://drush/test_private_file2.txt";
mkdir('public://drush');
mkdir('private://drush');
file_save_data($file_contents, $test_uri1);
file_save_data($file_contents, $test_uri2);
file_save_data($file_contents, $test_uri3);
file_save_data($file_contents, $test_uri4);
}