You are here

public function ParagraphsPackTestCase::setUp in Paragraphs pack 7

Set up the test environment.

Overrides DrupalWebTestCase::setUp

File

tests/paragraphs_pack.test, line 35
Paragraphs pack primary module's tests.

Class

ParagraphsPackTestCase
Test Case for Paragraphs pack primary module.

Code

public function setUp() {

  // Setup variables.
  $this->paragraph_bundle_name = 'pp_test_bundle';

  // We call parent::setUp() with the list of modules we want to enable.
  parent::setUp('paragraphs_pack', 'entityreference');

  // Call tested function for paragraph bundle creation.
  paragraphs_pack_create_paragraph($this->paragraph_bundle_name, 'Paragraph test bundle');
}