You are here

public function RedirectImportExportTest::testDuplicateRedirectImport in Acquia Content Hub 8.2

Tests import of a redirect that already has a local match.

@dataProvider testDuplicateRedirectImportDataProvider

Parameters

int $delta: Fixture delta.

array $validate_data: Data.

string $export_type: Exported entity type.

string $export_uuid: Entity UUID.

string $source: Source for the duplicate.

string $path: Path for the duplicate.

string $language: Langcode for the duplicate.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

\Drupal\Core\Entity\EntityStorageException

File

tests/src/Kernel/RedirectImportExportTest.php, line 122

Class

RedirectImportExportTest
Tests redirect export and import.

Namespace

Drupal\Tests\acquia_contenthub\Kernel

Code

public function testDuplicateRedirectImport(int $delta, array $validate_data, string $export_type, string $export_uuid, string $source, string $path, string $language) {
  $this
    ->createDuplicateRedirect($export_uuid, $source, $path, $language);
  parent::contentEntityImportExport($delta, $validate_data, $export_type, $export_uuid);
}