@@ 21-36 (lines=16) @@ | ||
18 | { |
|
19 | protected static $fixture_file = 'FileFormBuilderTest.yml'; |
|
20 | ||
21 | public function setUp() |
|
22 | { |
|
23 | parent::setUp(); |
|
24 | ||
25 | // Set backend and base url |
|
26 | TestAssetStore::activate('FileFormBuilderTest'); |
|
27 | ||
28 | /** @var File $testfile */ |
|
29 | $testfile = $this->objFromFixture(File::class, 'file1'); |
|
30 | $testfile->setFromLocalFile(__DIR__ . '/fixtures/testfile.txt', 'files/testfile.txt'); |
|
31 | $testfile->write(); |
|
32 | ||
33 | /** @var Image $testimage */ |
|
34 | $testimage = $this->objFromFixture(Image::class, 'image1'); |
|
35 | $testimage->setFromLocalFile(__DIR__ . '/fixtures/testimage.png', 'files/testimage.png'); |
|
36 | } |
|
37 | ||
38 | public function tearDown() |
|
39 | { |
@@ 23-38 (lines=16) @@ | ||
20 | { |
|
21 | protected static $fixture_file = 'FileFormBuilderTest.yml'; |
|
22 | ||
23 | public function setUp() |
|
24 | { |
|
25 | parent::setUp(); |
|
26 | ||
27 | // Set backend and base url |
|
28 | TestAssetStore::activate('FileFormBuilderTest'); |
|
29 | ||
30 | /** @var File $testfile */ |
|
31 | $testfile = $this->objFromFixture(File::class, 'file1'); |
|
32 | $testfile->setFromLocalFile(__DIR__ .'/fixtures/testfile.txt', 'files/testfile.txt'); |
|
33 | $testfile->write(); |
|
34 | ||
35 | /** @var Image $testimage */ |
|
36 | $testimage = $this->objFromFixture(Image::class, 'image1'); |
|
37 | $testimage->setFromLocalFile(__DIR__.'/fixtures/testimage.png', 'files/testimage.png'); |
|
38 | } |
|
39 | ||
40 | public function tearDown() |
|
41 | { |