You are here

public function MinisiteTestBase::assertMinisiteUploaded in Mini site 8

Assert that Minisite archive file was uploaded and assets expanded.

4 calls to MinisiteTestBase::assertMinisiteUploaded()
UploadBrowseAliasPathautoTest::testUploadAndBrowsingAlias in tests/src/Functional/UploadBrowseAliasPathautoTest.php
Tests ZIP file upload and browsing minisite pages with Pathauto alias.
UploadBrowseAliasTest::testUploadAndBrowsingAlias in tests/src/Functional/UploadBrowseAliasTest.php
Tests ZIP file upload and browsing minisite pages with alias.
UploadBrowseTest::testUploadAndBrowsing in tests/src/Functional/UploadBrowseTest.php
Tests ZIP file upload and browsing minisite pages.
UploadBrowseTest::testUploadAndRemoval in tests/src/Functional/UploadBrowseTest.php
Tests ZIP file upload and removal, without removing a node.

File

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

Class

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

Namespace

Drupal\Tests\minisite\Functional

Code

public function assertMinisiteUploaded($node, $field_name, $test_archive_assets) {
  $archive_file = $this
    ->getUploadedArchiveFile($node, $field_name);
  $this
    ->assertArchiveFileExist($archive_file);
  $this
    ->assertAssetFilesExist($test_archive_assets);
}