You are here

ParagraphsIEFTests.php in Paragraphs Inline Entity Form 2.x

Same filename and directory in other branches
  1. 2.0.x src/Tests/ParagraphsIEFTests.php

File

src/Tests/ParagraphsIEFTests.php
View source
<?php

namespace Drupal\paragraphs_inline_entity_form\Tests;

use Drupal\Tests\BrowserTestBase;

/**
 * Paragraphs IEF tests.
 *
 * @group paragraphs_inline_entity_form
 */
class ParagraphsIEFTests extends BrowserTestBase {

  /**
   * @inheritdoc
   */
  protected $profile = 'standard';

  /**
   * Modules to enable.
   *
   * @var array
   */
  public static $modules = [
    'ckeditor',
    'entity',
    'entity_browser',
    'entity_embed',
    'entity_reference',
    'paragraphs',
    'inline_entity_form',
    'paragraphs_inline_entity_form_example',
  ];

  /**
   * @var \Drupal\user\UserInterface
   */
  protected $adminUser;

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();

    // Create admin user.
    $this->adminUser = $this
      ->drupalCreateUser([
      'access administration pages',
    ], 'Admin', TRUE);
  }

  /**
   * Admin UI.
   */
  function testAdminUI() {
    $this
      ->drupalLogin($this->adminUser);
  }

}

Classes

Namesort descending Description
ParagraphsIEFTests Paragraphs IEF tests.