Download the PHP package ixis/codeception-module-drupal-user-registry without Composer

On this page you can find all versions of the php package ixis/codeception-module-drupal-user-registry. 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 codeception-module-drupal-user-registry

Drupal User Registry

A Codeception module for managing test users

Build Status Scrutinizer Code Quality Latest Stable Version Latest unstable version Total Downloads License

Drupal User Registry is a Codeception module for managing test users on Drupal sites. It can be configured to automatically create users before and delete users after a suite run.

It also allows the use of the following statements in tests:

All methods available to the Actor object $I are defined in this module's public API.

The DrupalTestUser class is a very minimal representation of a Drupal user account and can be used as part of a login procedure defined in, for example, a StepObject or PageObject.

This module currently uses Drush and Drush aliases to create, delete and add roles to user accounts. Note that the --delete-content option is used when deleting users, so any content created by that user account will also be removed.

Installation

This module is available on Packagist and can be installed with Composer:

Drupal User Registry minimally requires Codeception 2.0 and PHP 5.4; note also that versions up to v0.2.2 are compatible with Codeception 2.0.* only.

Example suite configuration

Required and optional configuration

Configured values for users are required. drush-alias is only currently required as DrushTestUserManager is the only class available for managing (creating/deleting) users.

Other optional configuration includes:

Troubleshooting

The module provides more verbose output when used with Codeception's --debug option. For example:

$ vendor/bin/codecept run --debug

[Drupal User Registry] Creating test users.
  Trying to create test user 'test.administrator' on '@mysite.local'.
  drush -y '@mysite.local' user-information 'test.administrator'
Creating test user 'test.administrator' on '@mysite.local'.
  drush -y '@mysite.local' user-create 'test.administrator' --mail='[email protected]' --password='test123!'
  drush -y '@mysite.local' user-add-role 'administrator' --name='test.administrator'
  Trying to create test user 'test.editor' on '@mysite.local'.
  drush -y '@mysite.local' user-information 'test.editor'
Creating test user 'test.editor' on '@mysite.local'.
  drush -y '@mysite.local' user-create 'test.editor' --mail='[email protected]' --password='test123!'
  drush -y '@mysite.local' user-add-role 'editor' --name='test.editor'
...
(Tests.)
...
  [Drupal User Registry] Deleting test users.
Deleting test user test.administrator on @mysite.local.
  drush -y '@mysite.local' user-cancel test.administrator --delete-content
Deleting test user test.editor on @mysite.local.
  drush -y '@mysite.local' user-cancel test.editor --delete-content
...

Testing

This module has some unit and functional tests using Codeception. Currently only the unit tests are run in Travis builds.

To run the unit tests:

$ vendor/bin/codecept run unit

The functional suite requires a Drupal 7 site set up with an open connection to the database as configured in functional.suite.yml - its best to edit the configuration for the local environment and run:

$ vendor/bin/codecept run functional --env=local

To run both suites:

$ vendor/bin/codecept run --env=local

Contribute

This module's code is managed with git-flow (AVH Edition). Releases are made on the master branch and should be tagged using semantic versioning and the format vx.y.z, e.g. v1.2.3

Pull requests should be made to the develop branch.

Acknowledgements

Thanks to Andy Rigby for the storage code and inspiration.

License

The project is licensed under The MIT License (MIT).


All versions of codeception-module-drupal-user-registry with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
codeception/codeception Version ~2.0.8
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 ixis/codeception-module-drupal-user-registry contains the following files

Loading the files please wait ....