liip / drupal-testing
此包的最新版本(dev-master)没有可用的许可证信息。
一个将PHPUnit与Drupal集成的库
dev-master
2014-02-07 09:30 UTC
Requires
- php: >=5.3.0
- fabpot/goutte: ~1
- monolog/monolog: ~1.7
- symfony/console: ~2
This package is not auto-updated.
Last update: 2024-09-14 13:25:18 UTC
README
这个代码是完全实验性的!
目的
目标是集成PHPUnit和SQLite与Drupal,以便能够在Drupal外部运行测试。
目前,您可以从页面获取一个Symfony/DomCrawler并从Drupal中登录和登出。
用法
# Install composer + init / update, then...
composer.phar install
# Duplicate and adapt the test configuration
# You have to adapt the DRUPAL_ROOT and DRUPAL_URL to point to a working Drupal instance
cp phpunit.xml.dist phpunit.xml
# Run the tests
# The self tests will only succeed if you enabled the short URLs for your Drupal install.
phpunit -c .
待办事项
- 集成SQLite
- 切换到新数据库
- 探索Lapistano库的集成
- NTH: 自动安装+模块在干净的数据库中启用/禁用