Get support for sixty-nine/DrupalTesting

If you're new to LTH, please see our FAQ for more information on what it is we do.

Support Options

Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:

View Open Issues

Take a look to see if anyone else has experienced the same issue as you and if they managed to solve it.

Open an Issue

Make sure to read any relevant guidelines for opening issues on this repo before posting a new issue.

Sponsor directly

Check out the page and see if there are any options to sponsor this project or it's developers directly.

sixty-nine/DrupalTesting

Drupal 7 PHPUnit testing

This is code is completely experimental !

Purpose

The goal is to integrate PHPUnit and SQLite with Drupal in order to be able to run tests outside of Drupal.

For now you can get a get a Symfony/DomCrawler from a page and log-in and out from Drupal.

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
Our Mission

We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.

Interesting Articles

Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated

p-e622a1a2