Commit 42e691e3 authored by Liam Morland's avatar Liam Morland
Browse files

Coding standards

parent 1180b806
## NOTE ON THEMEING
With the release of Drupal 8.6.0 WCMS theme uw_fdsu_theme_resp would not install correctly in the profile. For now, it has been removed, once the profile installs, you can simply enable the theme either through the command line or the GUI.
With the release of Drupal 8.6.0 WCMS theme uw_fdsu_theme_resp would not install
correctly in the profile. For now, it has been removed, once the profile
installs, you can simply enable the theme either through the command line or the
GUI.
## Installation
......@@ -25,13 +29,13 @@ DRUPAL_ROOT/core/phpunit.xml.dist to phpunit.xml and in that file set:
SIMPLETEST_DB to the database URL following the pattern in the file.
SYMFONY_DEPRECATIONS_HELPER to "weak".
Tests can be run from the Drupal UI. To run tests from the command line,
run this in the DRUPAL_ROOT:
Tests can be run from the Drupal UI. To run tests from the command line, run
this in the DRUPAL_ROOT:
sudo --user www-data vendor/bin/phpunit -c core <test-file>
Where <test-file> is like:
profiles/uw_base_profile/tests/src/Functional/UwWcmsBasicTest.php
Tests need to run with sudo because they need to run as the user that
runs the web server.
Tests need to run with sudo because they need to run as the user that runs the
web server.
......@@ -142,13 +142,13 @@
"wcms-module",
"wcms-theme",
"drupal-library"
],
"installer-paths": {
"../../core": ["type:drupal-core"],
"libraries/{$name}": ["type:drupal-library"],
"modules/features/{$name}": ["type:wcms-module"],
"modules/contrib/{$name}": ["type:drupal-module"],
"themes/{$name}": ["type:wcms-theme"]
}
],
"installer-paths": {
"../../core": ["type:drupal-core"],
"libraries/{$name}": ["type:drupal-library"],
"modules/features/{$name}": ["type:wcms-module"],
"modules/contrib/{$name}": ["type:drupal-module"],
"themes/{$name}": ["type:wcms-theme"]
}
}
}
......@@ -31,10 +31,10 @@ function uw_base_profile_form_install_configure_form_alter(&$form, FormStateInte
* Implements hook_install_tasks().
*/
function uw_base_profile_install_tasks(&$install_state) {
$tasks['uw_base_profile_conditional_installs'] = array(
$tasks['uw_base_profile_conditional_installs'] = [
'display_name' => 'University of Waterloo conditional installs',
'type' => 'normal',
);
];
return $tasks;
}
......@@ -44,7 +44,7 @@ function uw_base_profile_install_tasks(&$install_state) {
function uw_base_profile_conditional_installs() {
$is_dev = Settings::get('uw_dev_site', FALSE);
if ($is_dev) {
$modules = array('uw_site_dev');
$modules = ['uw_site_dev'];
\Drupal::service('module_installer')->install($modules, TRUE);
}
}
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