class ParagraphsCollectionConfigurationTest

Tests configuration handling within Paragraphs Collection.

@group paragraphs_collection @requires module paragraphs

Hierarchy

Expanded class hierarchy of ParagraphsCollectionConfigurationTest

File

paragraphs_collection/tests/src/Functional/ParagraphsCollectionConfigurationTest.php, line 13

Namespace

Drupal\Tests\paragraphs_collection\Functional
View source
class ParagraphsCollectionConfigurationTest extends ParagraphsTestBase {

  /**
   * Tests if reinstalling module delete configuration files.
   */
  public function testReinstallingModule() {
    \Drupal::service('module_installer')
      ->install([
      'paragraphs_collection',
    ]);
    \Drupal::service('module_installer')
      ->uninstall([
      'paragraphs_collection',
    ]);
    \Drupal::service('module_installer')
      ->install([
      'paragraphs_collection',
    ]);
  }

}

Members

Namesort ascending Modifiers Type Description Overrides
ParagraphsTestBaseTrait::setParagraphsWidgetSettings protected function Sets some of the settings of a paragraphs field widget.
ParagraphsTestBaseTrait::createEditorialWorkflow protected function Creates a workflow entity.
ParagraphsTestBaseTrait::coreVersion protected function Checks the core version.
ParagraphsTestBaseTrait::addParagraphsTypeIcon protected function Adds an icon to a paragraphs type.
ParagraphsTestBaseTrait::addParagraphsType protected function Adds a Paragraphs type.
ParagraphsTestBaseTrait::addParagraphsField protected function Adds a Paragraphs field to a given entity type.
ParagraphsTestBaseTrait::addParagraphedContentType protected function Adds a content type with a Paragraphs field.
ParagraphsTestBaseTrait::addFieldtoParagraphType protected function Adds a field to a given paragraph type.
ParagraphsTestBaseTrait::$workflow protected property The workflow entity.
ParagraphsTestBase::setUp protected function 19
ParagraphsTestBase::setParagraphsWidgetMode protected function Sets the Paragraphs widget display mode.
ParagraphsTestBase::setParagraphsTypeWeight protected function Sets the weight of a given Paragraphs type.
ParagraphsTestBase::setDefaultParagraphType protected function Sets the default paragraph type.
ParagraphsTestBase::setAllowedParagraphsTypes protected function Sets the allowed Paragraphs types that can be added.
ParagraphsTestBase::setAddMode protected function Sets the Paragraphs widget add mode. Overrides ParagraphsTestBase::setAddMode
ParagraphsTestBase::removeDefaultParagraphType protected function Removes the default paragraph type. Overrides ParagraphsTestBase::removeDefaultParagraphType
ParagraphsTestBase::loginAsAdmin function Creates an user with admin permissions and log in.
ParagraphsTestBase::$modules protected static property Modules to enable. 48
ParagraphsTestBase::$defaultTheme protected property 2
ParagraphsTestBase::$admin_user protected property Drupal user object created by loginAsAdmin(). 1
ParagraphsTestBase::$admin_permissions protected property List of permissions used by loginAsAdmin().
ParagraphsCollectionConfigurationTest::testReinstallingModule public function Tests if reinstalling module delete configuration files.