Skip to content

drupal-modules/drupal-phpunit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPUnit wrapper for Drupal 7

Status

Build status: National-Theatre/drupal-phpunit build status

Prerequisites

  • Composer

Installation

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"
    }
  ],
}

Usage

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

About

PHPUnit wrapper for Drupal 7

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%