betterweekdays/upal
最新稳定版本:1.0.3
Composer 安装命令:
composer require betterweekdays/upal
包简介
PHPUnit integeration for Drupal
README 文档
README
A group of classes used to help run tests using PHPUnit in Drupal.
upal assumes that tests are allowed to modify the database.
Usage
- Install PHPUnit (https://phpunit.de/manual/current/en/installation.html) and Drush (http://drupal.org/project/drush).
- Checkout or download a core Drupal that is to be tested (only tested with 7.x).
- Implement Upal\Bootstrap class
Configuration
Configuration can be loaded from array or file (YAML, XML, etc). Uses this config library: https://github.com/hassankhan/config.
Example:
$config = new Upal\Config(); $config->set('drush', '/path/to/drush'); $config->set('drupal_root', '/path/to/drupal/root'); $bootstrap = new Upal\Bootstrap($config); $bootstrap->setUp();
Config Defaults
- drush => trim(
which drush) - root => realpath('.')
- web_url => 'http://upal'
- tmp => sys_get_temp_dir()
- drupal_root => realpath('.')
统计信息
- 总下载量: 4.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2015-08-12