paragraphs_inline_entity_form-8.x-1.x-dev/tests/src/Functional/ParagraphsIEFTests.php

tests/src/Functional/ParagraphsIEFTests.php
<?php

namespace Drupal\Tests\paragraphs_inline_entity_form\Functional;

use Drupal\Tests\BrowserTestBase;

/**
 * Paragraphs IEF tests.
 *
 * @group paragraphs_inline_entity_form
 *
 * @package Drupal\Tests\paragraphs_inline_entity_form\Functional
 */
class ParagraphsIEFTests extends BrowserTestBase {

  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';

  /**
   * Modules to enable.
   *
   * @var array
   */
  protected static $modules = [
    'node',
    'ckeditor5',
    'entity',
    'entity_browser',
    'entity_embed',
    'paragraphs',
    'inline_entity_form',
    'paragraphs_inline_entity_form',
    'paragraphs_inline_entity_form_example'
  ];

  /**
   * Admin user.
   *
   * @var \Drupal\user\Entity\User
   */
  protected $adminUser;

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

    // Create admin user.
    $this->adminUser = $this->drupalCreateUser(['administer site configuration']);
  }

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

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc