Commit 2fd34a2a authored by Chris Shantz's avatar Chris Shantz
Browse files

Merge branch 'ISTWCMS-4190-lkmorlan-coding-standards' into '8.x-3.x'

ISTWCMS-4190: Fix coding standards

See merge request !28
parents 75938297 d00b3b25
......@@ -3,10 +3,12 @@
/**
* @file
* Settings common to all sites.
*
* phpcs:disable Drupal.NamingConventions.ValidVariableName.LowerStart
*/
// Include config files.
foreach(glob(__DIR__ . '/../../config/global/config/?*.php') as $config_file) {
foreach (glob(__DIR__ . '/../../config/global/config/?*.php') as $config_file) {
require_once $config_file;
}
unset($config_file);
......
<?php
/**
* @file
* Configuration for SAML.
*
* phpcs:ignoreFile
*/
$app_root = $_SERVER['DOCUMENT_ROOT'];
$site_path = 'sites/default/';
require $_SERVER['DOCUMENT_ROOT'] . 'sites/default/settings.php';
......
......@@ -305,10 +305,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
}
/**
* Catalog tests:
* Case 1: make sure workflows exist
* Case 2: make sure roles at default install are set up as expected
* Case 3: make sure "preview" button does not exist
* Catalog tests.
*
* Case 1: Make sure workflows exist.
* Case 2: Make sure roles at default install are set up as expected.
* Case 3: Make sure "preview" button does not exist.
*/
private function catalogTest() {
// Make sure work flows exist.
......@@ -430,6 +431,7 @@ class UwWcmsBasicTest extends BrowserTestBase {
/**
* Test config block.
*
* Test help text of Block ID and hiding url alias.
* Test timeline block.
*/
......@@ -464,13 +466,13 @@ class UwWcmsBasicTest extends BrowserTestBase {
// Verify that Blockquote and others are on the layout edit page.
$this->assertSession()->pageTextContains('Choose a block');
// Click 'Blockquote'
// Click 'Blockquote'.
$this->clickLink($block);
// Show Configure block
// Show Configure block.
$this->drupalPlaceBlock('layout_builder_add_block');
// Check help text of Block ID
// Check help text of Block ID.
$this->assertSession()->pageTextContains('Block ID is an optional setting which is used to support an anchor link to this block');
// Check if URL alias field exists.
......@@ -485,7 +487,8 @@ class UwWcmsBasicTest extends BrowserTestBase {
// Test timeline Step 2: Look on the layout edit page to click 'Add block'.
$this->clickLink('Add block');
// Test timeline Step 3: Verify that Blockquote and others are on the layout edit page.
// Test timeline Step 3: Verify that Blockquote and others are on the
// layout edit page.
$this->assertSession()->pageTextContains('Choose a block');
// Test timeline Step 4: Look on the page for the 'Timeline' link.
......@@ -517,4 +520,5 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this->assertSession()->pageTextContains('Content');
$this->assertSession()->buttonExists('Add Timeline');
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment