Download the PHP package aklump/drupal-test without Composer

On this page you can find all versions of the php package aklump/drupal-test. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package drupal-test

Drupal Test

Summary

This is a complete testing solution for using PhpUnit with Drupal websites. It provides Unit, Kernel, Client and End to End abstract test classes to use in writing your tests, a single test runner, testing for modules and themes, support for JsonSchema validation, as well as a set of guidelines and processes for better testing of Drupal modules and websites. All of this using a single test runner that can be divided by test suite or filtered by test class using normal PhpUnit options.

Finally, manual functional tests are supported as well.

Visit https://aklump.github.io/drupal-test for full documentation.

Quick Start

After installation (see below), follow instructions in the documentation (docs/index.html) to write and run tests.

Run All Tests

$ cd tests
$ export SIMPLETEST_BASE_URL=http://mysite.com; phpunit -c phpunit.xml

Run All Unit Tests

$ cd tests
$ phpunit -c phpunit.xml --testsuite Unit

Run All Kernel Tests

$ cd tests
$ phpunit -c phpunit.xml --testsuite Kernel

Run All Client Tests

$ cd tests
$ export SIMPLETEST_BASE_URL=http://mysite.com; phpunit -c phpunit.xml --testsuite Client

Run All End To End Tests

$ cd tests
$ export SIMPLETEST_BASE_URL=http://mysite.com; phpunit -c phpunit.xml --testsuite EndToEnd

Refer to the documentation for more info.

Configuration

See documentation for more information about configuration.

  1. Open _tests/drupal_testconfig.yml and setup autoloading.
  2. From tests run composer update --lock.
  3. Open tests/phpunit.xml and add any JSON schema directories.

Requirements

Contributing

If you find this project useful... please consider making a donation.

Installation

From inside the directory above the web root run this one-liner:

[ ! -d tests ] && git clone https://github.com/aklump/drupal-test.git tests && (cd tests && ./bin/install.sh) || echo "Installation error, nothing installed."

About the files in this project

The following files are considered core and should never be modified.

drupal_test.yml
drupal_test_bootstrap.php
composer.json
LICENSE
README.md

Additionally, do not add files to the following folders, which are replaced on every update. It is safe to add classes to src so long as you avoid src/DrupalTest.

docs
src/DrupalTest

Do not modify any of the files in bin, which are provided by this module. You may add your own files to bin, if you wish.

Update to the latest version

From inside the tests directory, run:

./bin/update.sh

This will copy over the core files from the latest repository, but leave the non-core files alone, namely phpunit.xml, which you most-likely will have modified.


All versions of drupal-test with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
mwojtowicz/phpunit-mink Version ^2.2|^3.0
aklump/phpunit-extras Version ^2.0
drupal/drupal-driver Version ^1.4
guzzlehttp/guzzle Version ^6.3
justinrainbow/json-schema Version ^5.2
mockery/mockery Version ^1.0
sunra/php-simple-html-dom-parser Version ^1.5
wikimedia/composer-merge-plugin Version ^1.4
aklump/manual-test Version ^1.2
kevinlebrun/password.php Version ^0.1
behat/mink-goutte-driver Version ^1.2
symfony/browser-kit Version ^3.4
symfony/yaml Version ^3.0|^4.0
erusev/parsedown Version ^1.7
php-mime-mail-parser/php-mime-mail-parser Version ^4.0
adbario/php-dot-notation Version ^2.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aklump/drupal-test contains the following files

Loading the files please wait ....