- Composer
Include this package in your composer.json
file as:
{
"require": {
"NT/drupal-phpunit": "dev-master"
},
"repositories": [
{
"type": "git",
"url": "https://github.com/National-Theatre/drupal-phpunit.git"
}
],
}
To use this package in your tests, you need to extend your classes using DrupalTestCase
class, for example:
use NT\Drupal\Testing\PHPUnit\DrupalTestCase;
class MyOwnTest extends DrupalTestCase {
// Methods here.
}