Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dof-dss/nidirect-d8-test-install-profile
https://github.com/dof-dss/nidirect-d8-test-install-profile
drupal nidirect
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dof-dss/nidirect-d8-test-install-profile
- Owner: dof-dss
- License: mit
- Created: 2019-07-25T08:16:54.000Z (over 5 years ago)
- Default Branch: development
- Last Pushed: 2021-07-31T08:53:32.000Z (over 3 years ago)
- Last Synced: 2024-10-18T07:32:28.796Z (28 days ago)
- Topics: drupal, nidirect
- Size: 1.01 MB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![CircleCI](https://circleci.com/gh/dof-dss/nidirect-d8-test-install-profile.svg?style=svg)](https://circleci.com/gh/dof-dss/nidirect-d8-test-install-profile)
# NIDirect Drupal 8 Test Install Profile
Drupal source code for the NIDirect website: https://www.nidirect.gov.uk.
## Getting started
This repository should be cloned as follows inside the /web/profiles directory of a working Drupal 8 NIDirect site:
`git clone [email protected]:dss/nidirect-d8-test-install-profile.git custom`
(after doing this, you should have a 'web/profiles/custom/test_profile' directory in your project)## Updating the install profile
Simply export your current config to the install profile directory like this:
`lando drush config-export --destination=profiles/custom/test_profile/config/sync`
After doing this, edit profiles/custom/test_profile/config/sync/core.extension.yml and make sure that the
install profile is set to 'test_profile' rather than 'standard'.
Note that this may involve making two changes towards the bottom of the file,
as shown in the following sample from the end of the core.extension.yml file:```
test_profile: 1000
theme:
stable: 0
classy: 0
bartik: 0
seven: 0
stark: 0
profile: test_profile
_core:
default_config_hash: R4IF-ClDHXxblLcG0L7MgsLvfBIMAvi_skumNFQwkDc
```## Running unit tests
First, ensure that your SIMPLETEST_BASE_URL is set to the local site URL in the lando
`config/phpunit.lando.xml` file (this should be set automatically by the Lando build scripts,
but is worth checking if you are having problems)From inside lando (ssh’d in) in the directory `/app/drupal8/web/core` run this:
`../../vendor/bin/phpunit ../modules/custom/nidirect_common/tests/src/Functional/DrivingInstructorTest.php`