If you need an extended and specific version of this topic, read this article:
*Functional testing for Browser in Drupal 8-9 using PHPUnit
- David Rodríguez, @davidjguru.
- Contact at davidjguru@gmail.com
- Website: https://therussianlullaby.com
If you need an extended and specific version of this topic, read this article:
*Functional testing for Browser in Drupal 8-9 using PHPUnit
Allow about one hour to follow this tutorial and become familiar with BLT. To save time, create the Acquia Cloud Free environment before you start the tutorial.
This tutorial assumes you are on a Mac, but I also wrote a quick start for Drupal and BLT on Windows 10.
name: gatsby | |
proxy: | |
appserver: | |
# Though Gatsby will be running on 80, it will still be available via SSH here. | |
- gatsby.lndo.site | |
services: | |
# Prefer appserver as a name since Lando defaults to it - making `lando ssh` functional as opposed to a required service name (`lando ssh nodejs` | |
appserver: |
name: drupal | |
recipe: drupal9 | |
config: | |
webroot: . | |
services: | |
appserver: | |
build: | |
- mkdir -p $LANDO_WEBROOT/sites/simpletest/browser_output | |
overrides: | |
environment: |
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- TODO set checkForUnintentionallyCoveredCode="true" once https://www.drupal.org/node/2626832 is resolved. --> | |
<!-- PHPUnit expects functional tests to be run with either a privileged user | |
or your current system user. See core/tests/README.md and | |
https://www.drupal.org/node/2116263 for details. | |
--> | |
<phpunit bootstrap="web/core/tests/bootstrap.php" colors="true" | |
beStrictAboutTestsThatDoNotTestAnything="true" | |
beStrictAboutOutputDuringTests="true" |
[ | |
{ | |
"name": "Afghanistan", | |
"code": "AF" | |
}, | |
{ | |
"name": "Åland Islands", | |
"code": "AX" | |
}, | |
{ |
#!/usr/bin/env drush | |
<?php | |
/** | |
* This script updates eligible modules and commits automatically. | |
* | |
* To use this, place this script in your site docroot. Run it with | |
* `drush update-modules.php`. | |
* This script will need the "eligible_modules" key defined in a | |
* drushrc.php or drushrc.local.php., e.g.: |
[alias] | |
co = checkout | |
cob = checkout -b | |
coo = !git fetch && git checkout | |
br = branch | |
brd = branch -d | |
brD = branch -D | |
merged = branch --merged | |
dmerged = "git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d" | |
st = status |
name: drupal-solr | |
recipe: drupal8 | |
config: | |
# PHP 7 is required for Search API Solr 2. | |
php: '7.2' | |
webroot: web | |
# Get nice url's for each service. | |
proxy: |