2017 © Pedro Peláez
 

library drupal-testing

A library to integrate PHPUnit with Drupal

image

liip/drupal-testing

A library to integrate PHPUnit with Drupal

  • Friday, February 7, 2014
  • by sixty-nine
  • Repository
  • 1 Watchers
  • 4 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 3 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Drupal 7 PHPUnit testing

This is code is completely experimental !, (*1)

Purpose

The goal is to integrate PHPUnit and SQLite with Drupal in order to be able to run tests outside of Drupal., (*2)

For now you can get a get a Symfony/DomCrawler from a page and log-in and out from Drupal., (*3)

Usage

# 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 .

TODO

  • integrate SQLite
  • switch to a new database
  • explore integration of Lapistano's libraries
  • NTH: auto-install + modules enable/disable into a clean DB

The Versions

07/02 2014

dev-master

9999999-dev

A library to integrate PHPUnit with Drupal

  Sources   Download

The Requires

 

by Daniel Barsotti

phpunit testing drupal

17/12 2013

dev-new-namespace

dev-new-namespace

A library to integrate PHPUnit with Drupal

  Sources   Download

The Requires

 

by Avatar andreiashu
by Daniel Barsotti

phpunit testing drupal

17/12 2013

dev-fixTests

dev-fixTests

A library to integrate PHPUnit with Drupal

  Sources   Download

The Requires

 

by Daniel Barsotti

phpunit testing drupal

10/12 2013

dev-noDrupalConnectorDep

dev-noDrupalConnectorDep

A library to integrate PHPUnit with Drupal

  Sources   Download

The Requires

 

by Daniel Barsotti

phpunit testing drupal

22/01 2013

dev-new-connector

dev-new-connector

A library to integrate PHPUnit with Drupal

  Sources   Download

The Requires

 

by Daniel Barsotti

phpunit testing drupal