protected function FeedsParaMapperWebTestCase::topHostParagraphsEntityExists in Feeds Paragraphs 7
Check whether the top host (node) has Paragraphs entity.
3 calls to FeedsParaMapperWebTestCase::topHostParagraphsEntityExists()
- FeedsParaMapperNestedImportTestCase::testNestedImport in tests/
importing.test - Test importing nodes with nested paragraphs fields.
- FeedsParaMapperSingleValueTestCase::testImport in tests/
importing.test - Test importing nodes with paragraphs field value.
- FeedsParaMapperWebTestCase::multiImport in tests/
FeedsParaMapperWebTestCase.test - Tests Multi-valued fields importing.
File
- tests/
FeedsParaMapperWebTestCase.test, line 439 - Common functionality for all Paragraphs Mapper tests.
Class
- FeedsParaMapperWebTestCase
- Test basic functionality via DrupalWebTestCase.
Code
protected function topHostParagraphsEntityExists() {
$item = $this
->getTopHostParagraphsEntities();
$message = "The created paragraphs item entity found";
$this
->assertTrue(count($item) > 0, $message, 'Importing');
}