protected function ImportExportTestBase::importFixture in Acquia Content Hub 8.2
Import fixture.
Parameters
int $delta: Delta.
Return value
mixed Expectations.
Throws
\Drupal\Core\Entity\EntityStorageException
\Exception
5 calls to ImportExportTestBase::importFixture()
- ImportExportTestBase::configEntityImportExport in tests/
src/ Kernel/ ImportExportTestBase.php - Executes the set of import/export tests on a configuration entity.
- ImportExportTestBase::contentEntityImportExport in tests/
src/ Kernel/ ImportExportTestBase.php - Import and export content.
- PreExistingTermImportExportTest::testTermImportExport in tests/
src/ Kernel/ PreExistingTermImportExportTest.php - Performs taxonomy terms import and runs assertions.
- PreExistingTermMultipleParentImportExportTest::testTermImportExport1 in tests/
src/ Kernel/ PreExistingTermMultipleParentImportExportTest.php - Performs tests with taxonomy term with multiple parents.
- PreExistingTermMultipleParentImportExportTest::testTermImportExport2 in tests/
src/ Kernel/ PreExistingTermMultipleParentImportExportTest.php - Performs tests with taxonomy term with multiple parents.
File
- tests/
src/ Kernel/ ImportExportTestBase.php, line 187
Class
- ImportExportTestBase
- Base for testing exports and imports.
Namespace
Drupal\Tests\acquia_contenthub\KernelCode
protected function importFixture(int $delta) {
$expectations = $this
->getFixtureExpectations($delta);
$document = $this
->createCdfDocumentFromFixture($delta);
$stack = new DependencyStack();
$this
->getSerializer()
->unserializeEntities($document, $stack);
return $expectations;
}