You are here

public function MinisiteTestBase::assertArchiveFileExist in Mini site 8

Assert archive file exists.

1 call to MinisiteTestBase::assertArchiveFileExist()
MinisiteTestBase::assertMinisiteUploaded in tests/src/Functional/MinisiteTestBase.php
Assert that Minisite archive file was uploaded and assets expanded.

File

tests/src/Functional/MinisiteTestBase.php, line 331

Class

MinisiteTestBase
Provides methods specifically for testing Minisite module's field handling.

Namespace

Drupal\Tests\minisite\Functional

Code

public function assertArchiveFileExist(FileInterface $file) {
  $this
    ->assertFileEntryExists($file, 'Archive file entry exists');
  $this
    ->assertFileUriExists(Minisite::getCommonArchiveDir() . DIRECTORY_SEPARATOR . $file
    ->getFilename(), 'Archive file exists');
}