bootstrap_barrio-5.1.3/tests/src/Functional/BootstrapBarrioTest.php

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

namespace Drupal\Tests\bootstrap_barrio\Functional;

use Drupal\Tests\BrowserTestBase;

/**
 * Tests the Bootstrap Barrio theme.
 *
 * @group claro
 */
class BootstrapBarrioTest extends BrowserTestBase {

  /**
   * Modules to enable.
   *
   * Install the shortcut module so that bootstrap_bario.settings has its schema
   * checked. There's currently no way for Bootstrap Barrio to provide a default
   * and have valid configuration as themes cannot react to a module install.
   *
   * @var string[]
   */
  protected static $modules = ['shortcut'];

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


  /**
   * Test Bootstrap Barrio's configuration schema.
   */
  public function testConfigSchema() {
    $this->drupalLogin($this->rootUser);
    $this->drupalGet('admin/appearance/settings/' . $this->defaultTheme);
    $this->submitForm([], 'Save configuration');
    $this->assertSession()->statusCodeEquals(200);
  }

}

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

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