Commit 5874db11 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3232630: Fix Bootstrap Barrio theme schema for configuration files used in Vartheme BS4

parent ccccdf41
Loading
Loading
Loading
Loading
+28 −14
Original line number Diff line number Diff line
build:
  assessment:
    validate_codebase:
      container_composer:
        - 'require oomphinc/composer-installers-extender:~1.0'
        - 'require cweagans/composer-patches:~1.0'
        - 'require drupal/drupal-library-installer-plugin:^0.3'
      container_command:
        commands:
          - 'cd ${SOURCE_DIR}'
          - 'sudo -u www-data composer config extra.enable-patching true'
          - 'sudo -u www-data composer config extra.composer-exit-on-patch-failure true'
    validate_codebase:
      phplint:
      csslint:
      eslint:
          - cd ${SOURCE_DIR}
          - composer config minimum-stability dev
          - composer config repositories.drupal composer https://packages.drupal.org/8
          - composer config --unset repositories.0
          - composer config repositories.assets composer https://asset-packagist.org
          - composer require oomphinc/composer-installers-extender:~2.0
          - composer require cweagans/composer-patches:~1.0
          - composer config extra.enable-patching true
          - composer config extra.composer-exit-on-patch-failure true
          - composer require --dev phpspec/prophecy-phpunit:*
          - composer require phpunit/phpunit:~9.0 --with-all-dependencies
          - composer config --json extra.installer-types '["npm-asset", "bower-asset"]'
          - composer config --unset extra.installer-paths.libraries\/\{\$name\}
          - composer config --json extra.installer-paths.libraries\/\{\$name\} '["type:drupal-library", "type:bower-asset", "type:npm-asset"]'
          - rm composer.lock
          - composer require drupal/vartheme_claro:9.0.x-dev
          - cat composer.json
          - find ${SOURCE_DIR}/libraries | sed -e "s/[^-][^\/]*\//  |/g" -e "s/|\([^ ]\)/|-\1/"
      phplint: {  }
      phpcs:
        # phpcs will use core's specified version of Coder.
        sniff-all-files: false
        halt-on-fail: false
      phpstan:
        halt-on-fail: false
    testing:
      run_tests.functional:
        types: 'PHPUnit-Functional'
        testgroups: 'vartheme_bs4'
      run_tests.javascript:
        types: 'PHPUnit-FunctionalJavascript'
        testgroups: "vartheme_bs4"
        suppress-deprecations: true
        halt-on-fail: false
+91 −0
Original line number Diff line number Diff line
<?php

namespace Drupal\Tests\vartheme_bs4\Functional;
namespace Drupal\Tests\vartheme_bs4\FunctionalJavascript;

use Drupal\Tests\BrowserTestBase;
use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\Core\Cache\Cache;
@@ -12,7 +12,7 @@ use Drupal\Core\Cache\Cache;
 *
 * @group vartheme_bs4
 */
class VarthemeBs4Tests extends BrowserTestBase {
class VarthemeBs4Tests extends WebDriverTestBase {

  use StringTranslationTrait;

@@ -50,6 +50,12 @@ class VarthemeBs4Tests extends BrowserTestBase {
  protected function setUp() {
    parent::setUp();

    // Insall the Claro admin theme.
    $this->container->get('theme_installer')->install(['vartheme_claro']);

    // Set the Claro theme as the default admin theme.
    $this->config('system.theme')->set('admin', 'vartheme_claro')->save();

    ConfigurableLanguage::createFromLangcode('ar')->save();
    Cache::invalidateTags(['rendered', 'locale']);
  }
@@ -58,28 +64,28 @@ class VarthemeBs4Tests extends BrowserTestBase {
   * Check Vartheme BS4 blocks.
   */
  public function testCheckVarthemeBs4Blocks() {
    $assert_session = $this->assertSession();

    // Given that the root super user was logged in to the site.
    $this->drupalLogin($this->rootUser);

    // Vartheme BS4 blocks.
    $this->drupalGet('/admin/structure/block/list/vartheme_bs4');

    $assert_session->pageTextContains($this->t('Site branding'));
    $assert_session->pageTextContains($this->t('Main navigation'));
    $assert_session->pageTextContains($this->t('Breadcrumbs'));
    $assert_session->pageTextContains($this->t('Primary admin actions'));
    $assert_session->pageTextContains($this->t('Status messages'));
    $assert_session->pageTextContains($this->t('Page title'));
    $assert_session->pageTextContains($this->t('Tabs'));
    $assert_session->pageTextContains($this->t('Highlighted'));
    $assert_session->pageTextContains($this->t('Help'));
    $assert_session->pageTextContains($this->t('Content'));
    $assert_session->pageTextContains($this->t('Main page content'));
    $assert_session->pageTextContains($this->t('Primary'));
    $assert_session->pageTextContains($this->t('SecondaryPlace'));
    $assert_session->pageTextContains($this->t('Footer'));
    $assert_session->pageTextContains($this->t('Footer menu'));
    $this->assertSession()->pageTextContains($this->t('Site branding'));
    $this->assertSession()->pageTextContains($this->t('Main navigation'));
    $this->assertSession()->pageTextContains($this->t('Breadcrumbs'));
    $this->assertSession()->pageTextContains($this->t('Primary admin actions'));
    $this->assertSession()->pageTextContains($this->t('Status messages'));
    $this->assertSession()->pageTextContains($this->t('Page title'));
    $this->assertSession()->pageTextContains($this->t('Tabs'));
    $this->assertSession()->pageTextContains($this->t('Highlighted'));
    $this->assertSession()->pageTextContains($this->t('Help'));
    $this->assertSession()->pageTextContains($this->t('Content'));
    $this->assertSession()->pageTextContains($this->t('Main page content'));
    $this->assertSession()->pageTextContains($this->t('Primary'));
    $this->assertSession()->pageTextContains($this->t('SecondaryPlace'));
    $this->assertSession()->pageTextContains($this->t('Footer'));
    $this->assertSession()->pageTextContains($this->t('Footer menu'));
  }

}
+3 −3

File changed.

Contains only whitespace changes.