Skip to content

Commit 5ee6c49

Browse files
authored
Merge pull request #27 from palantirnet/drupal11
update to drupal 11
2 parents 35fa8e7 + 4c89b3b commit 5ee6c49

14 files changed

Lines changed: 2310 additions & 1672 deletions

.ddev/commands/host/solrtail.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
## #ddev-generated
44
## Description: Tail the main solr log

.ddev/commands/solr/solrtail.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
## #ddev-generated
44
## Description: Tail the main solr log

.ddev/commands/web/eslint

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ echo "Running eslint against: /web/modules/contrib/$1"
3131
echo "======================"
3232
# Change directory to the project root folder
3333
cd "$DDEV_DOCROOT/modules/contrib/$1" || exit
34-
"$DDEV_COMPOSER_ROOT/$DDEV_DOCROOT/core/node_modules/.bin/eslint" --no-error-on-unmatched-pattern --ignore-pattern="*.es6.js" --resolve-plugins-relative-to=$DDEV_COMPOSER_ROOT/$DDEV_DOCROOT/core --ext=.js,.yml . "$@"
34+
CONFIG="$DDEV_COMPOSER_ROOT/$DDEV_DOCROOT/core/.eslintrc.passing.json"
35+
"$DDEV_COMPOSER_ROOT/$DDEV_DOCROOT/core/node_modules/.bin/eslint" -c $CONFIG --no-error-on-unmatched-pattern --ignore-pattern="*.es6.js" --resolve-plugins-relative-to=$DDEV_COMPOSER_ROOT/$DDEV_DOCROOT/core --ext=.js,.yml . "$@"

.ddev/commands/web/install

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@
44
## Usage: install
55
## Example: "ddev install"
66

7-
drush site:install standard --account-name=admin --account-pass=admin --site-name="Drupal 10" -y
8-
drush en admin_toolbar admin_toolbar_tools config_inspector devel
9-
7+
drush site:install standard --account-name=admin --account-pass=admin --site-name="Drupal 11 Development" -y
8+
drush theme:enable gin
9+
drush en admin_toolbar admin_toolbar_tools config_inspector devel gin_toolbar
10+
drush config:set system.theme admin gin -y
11+
drush config:set gin.settings classic_toolbar horizontal -y
1012
# Install eslint dependencies
11-
yarn --cwd $DDEV_DOCROOT/core install
13+
# The "--cwd" argument doesn't work with Yarn 4.4, because the global version
14+
# is returned as 1.22.22 when Yarn starts, before switching directories.
15+
cd $DDEV_DOCROOT/core
16+
yarn install
17+
cd -
1218
# Configure prettier
1319
test -e .prettierrc.json || ln -s $DDEV_DOCROOT/core/.prettierrc.json .
1420
test -e .prettierignore || echo '*.yml' > .prettierignore

.ddev/commands/web/test

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Description: Run tests on a specific module.
44
## Usage: test MODULE_NAME {TEST_TYPE} {TEST CLASS}
55
## Example: "ddev test admin_toolbar"
6-
## Example: "ddev test admin_toolbar Functional AdminToolbarAdminMenuTest"
6+
## Example: "ddev test admin_toolbar AdminToolbarAdminMenuTest"
77

88
if [ $# -eq 0 ]
99
then
@@ -32,13 +32,14 @@ then
3232
fi
3333

3434
CONFIG='/var/www/html/phpunit.xml'
35+
TEST_FILE=`find -type f -name $2.php`
3536

36-
if [ ! -z $3 ] && [ -f "web/modules/contrib/$1/tests/src/$2/$3.php" ]
37+
if [ ! -z $2 ] && [ ! -z $TEST_FILE ]
3738
then
3839
echo "============="
39-
echo "Running test: /web/modules/contrib/$1/$2/$3"
40+
echo "Running test: $TEST_FILE"
4041
echo "============="
41-
vendor/bin/phpunit -c "$CONFIG" --testdox "web/modules/contrib/$1/tests/src/$2/$3.php"
42+
vendor/bin/phpunit -c "$CONFIG" --testdox "$TEST_FILE"
4243
else
4344
echo "======================"
4445
echo "Running tests against: /web/modules/contrib/$1"

.ddev/commands/web/testb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Description: Run tests on a specific module.
44
## Usage: testb MODULE_NAME {TEST_TYPE} {TEST CLASS}
55
## Example: "ddev testb admin_toolbar"
6-
## Example: "ddev testb admin_toolbar Functional AdminToolbarAdminMenuTest"
6+
## Example: "ddev testb admin_toolbar AdminToolbarAdminMenuTest"
77

88
if [ $# -eq 0 ]
99
then
@@ -32,13 +32,14 @@ then
3232
fi
3333

3434
CONFIG='/var/www/html/phpunit.xml'
35+
TEST_FILE=`find -type f -name $2.php`
3536

36-
if [ ! -z $3 ] && [ -f "web/modules/contrib/$1/tests/src/$2/$3.php" ]
37+
if [ ! -z $2 ] && [ ! -z $TEST_FILE ]
3738
then
3839
echo "============="
39-
echo "Running test: /web/modules/contrib/$1/$2/$3"
40+
echo "Running test: $TEST_FILE"
4041
echo "============="
41-
vendor/bin/phpunit -c "$CONFIG" "web/modules/contrib/$1/tests/src/$2/$3.php"
42+
vendor/bin/phpunit -c "$CONFIG" "$TEST_FILE"
4243
else
4344
echo "======================"
4445
echo "Running tests against: /web/modules/contrib/$1"

.ddev/config.selenium-standalone-chrome.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ web_environment:
1212
# Use disable-dev-shm-usage instead of setting shm_usage
1313
# https://developers.google.com/web/tools/puppeteer/troubleshooting#tips
1414
# The format of chromeOptions is defined at https://chromedriver.chromium.org/capabilities
15-
- MINK_DRIVER_ARGS_WEBDRIVER=[\"chrome\", {\"browserName\":\"chrome\",\"goog:chromeOptions\":{\"w3c\":false,\"args\":[\"--disable-gpu\",\"--headless\", \"--no-sandbox\", \"--disable-dev-shm-usage\"]}}, \"http://selenium-chrome:4444/wd/hub\"]
15+
- MINK_DRIVER_ARGS_WEBDRIVER=[\"chrome\", {\"browserName\":\"chrome\",\"goog:chromeOptions\":{\"w3c\":false,\"args\":[\"--disable-gpu\", \"--no-sandbox\", \"--disable-dev-shm-usage\", \"--unsafely-treat-insecure-origin-as-secure=http://web\"]}}, \"http://selenium-chrome:4444/wd/hub\"]
1616
# Nightwatch
1717
- DRUPAL_TEST_BASE_URL=http://web
1818
- DRUPAL_TEST_DB_URL=mysql://db:db@db/db
@@ -26,4 +26,4 @@ web_environment:
2626
- DRUPAL_NIGHTWATCH_OUTPUT=reports/nightwatch
2727
# DTT
2828
- DTT_BASE_URL=http://web
29-
- DTT_MINK_DRIVER_ARGS=[\"chrome\", {\"browserName\":\"chrome\",\"goog:chromeOptions\":{\"w3c\":false,\"args\":[\"--disable-gpu\",\"--headless\", \"--no-sandbox\", \"--disable-dev-shm-usage\"]}}, \"http://selenium-chrome:4444/wd/hub\"]
29+
- DTT_MINK_DRIVER_ARGS=[\"chrome\", {\"browserName\":\"chrome\",\"goog:chromeOptions\":{\"w3c\":false,\"args\":[\"--disable-gpu\", \"--no-sandbox\", \"--disable-dev-shm-usage\", \"--unsafely-treat-insecure-origin-as-secure=http://web\"]}}, \"http://selenium-chrome:4444/wd/hub\"]

0 commit comments

Comments
 (0)