cypress-8.x-1.x-dev/tests/Cypress/integration/CypressTestSiteInstallScript.php

tests/Cypress/integration/CypressTestSiteInstallScript.php
<?php

use Drupal\cypress\TestSite\CypressTestSetup;
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\node\Entity\NodeType;

class CypressTestSiteInstallScript extends CypressTestSetup {

  /**
   * {@inheritdoc}
   *
   * @return void
   */
  public function setup() {
    parent::setup();
    /** @var \Drupal\Core\Extension\ModuleInstallerInterface $moduleInstaller */
    $moduleInstaller = \Drupal::service('module_installer');
    $moduleInstaller->install(['language', 'toolbar', 'workspaces', 'node']);
    NodeType::create([
      'type' => 'page',
      'name' => 'Page',
    ])->save();
    ConfigurableLanguage::createFromLangcode('de')->save();
  }

}

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

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