You are here

function ParagraphsPackWebTestCase::check_bundle_existence in Paragraphs pack 7

Check if the bundle exists.

Parameters

string $bundle: The bundle name.

5 calls to ParagraphsPackWebTestCase::check_bundle_existence()
ParagraphsPackContentTestCase::testParagraphsPackContentBundle in modules/paragraphs_pack_content/tests/paragraphs_pack_content.test
Paragraph Content bundle should be created.
ParagraphsPackjuiceboxTestCase::testParagraphsPackjuiceboxBundle in modules/paragraphs_pack_juicebox/tests/paragraphs_pack_juicebox.test
Paragraph juicebox bundle should be created.
ParagraphsPackNodeListTestCase::testParagraphsPackNodeListBundle in modules/paragraphs_pack_node_list/tests/paragraphs_pack_node_list.test
Test Paragraph Content bundle existence.
ParagraphsPackTaxonomyTermListTestCase::testParagraphsPackTaxonomyTermListBundle in modules/paragraphs_pack_taxonomy_term_list/tests/paragraphs_pack_taxonomy_term_list.test
Test Paragraph Taxonomy term bundle existence.
ParagraphsPackUserListTestCase::testParagraphsPackUserListBundle in modules/paragraphs_pack_user_list/tests/paragraphs_pack_user_list.test
Test Paragraph Taxonomy term bundle existence.

File

tests/paragraphs_pack.test_helper.inc, line 21
Paragraphs pack content module's tests.

Class

ParagraphsPackWebTestCase
Class ParagraphsPackWebTestCase

Code

function check_bundle_existence($bundle) {
  $content_bundle_loaded = paragraphs_bundle_load($bundle) != FALSE;
  $this
    ->assertTrue($content_bundle_loaded, t('Paragraph "@paragraph_bundle" bundle was successfully created.', array(
    '@paragraph_bundle' => $bundle,
  )));
}