dof-dss/nidirect-d8-test-install-profile
最新稳定版本:1.0.1
Composer 安装命令:
composer require dof-dss/nidirect-d8-test-install-profile
包简介
Unit test install profile for NI Direct
README 文档
README
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 git@svegit01.thestables.net: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
统计信息
- 总下载量: 5.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-29