Rules 8.x-3.x development
PHP Other
Latest commit f7d1ce8 Jan 28, 2017 @fago committed on GitHub Issue #2847627 by fago, tormi: Update the docs link.
Permalink
Failed to load latest commit information.
config Make context processor schema pass schema validation. Sep 22, 2016
d7-tests Enabled PHPCS in Travis CI and fixed some minor coding standards Dec 7, 2015
js Issue #2648326: added nested autocomplete suggestions in the UI Mar 21, 2016
src
tests Issue #2700519 by fago: Remove typed data code from Rules and depend … ( Sep 30, 2016
.travis.yml Issue #2809337 by fago: Remove oudated debug-patch which is not neede… Sep 30, 2016
README.md
composer.json Issue #2767005 by Shreya Shetty: Add composer .json Sep 15, 2016
phpcs.xml.dist
rules.info.yml Issue #2700519 by fago: Remove typed data code from Rules and depend … ( Sep 30, 2016
rules.libraries.yml
rules.links.action.yml
rules.links.menu.yml Issue #2574581 by kmox83: Merge Rules UI module into the main Rules m… Sep 25, 2015
rules.links.task.yml Issue #2574581 by kmox83: Merge Rules UI module into the main Rules m… Sep 25, 2015
rules.module
rules.permissions.yml Issue #2574581 by kmox83: Merge Rules UI module into the main Rules m… Sep 25, 2015
rules.routing.yml Issue #2471693 by a.milkovsky, garphy, emclaughlin, Sentei, Insasse: … Mar 17, 2016
rules.rules.events.yml Issue #2658842 by a.milkovsky: Add support for Rules event handlers a… Feb 22, 2016
rules.rules_ui.yml Issue #2682773 by fago: Repair adding components and embed UI for edi… Mar 7, 2016
rules.services.yml Issue #2700519 by fago: Remove typed data code from Rules and depend … ( Sep 30, 2016

README.md

Rules for Drupal 8

Build Status

The Rules module allows site administrators to define conditionally executed actions based on occurring events (ECA-rules).

Contributing

Link to Rules 8.x-3.x contributing tasks.

For some time, development will happen on GitHub using the pull request model: in case you are not familiar with that, please take a few minutes to read the GitHub article on using pull requests.

There are a few conventions that should be followed when contributing:

  • Always create an issue in the drupal.org Rules issue queue for every pull request you are working on.
  • Always cross-reference the Issue in the Pull Request and the Pull Request in the issue.
  • Always create a new branch for every pull request: its name should contain a brief summary of the ticket and its issue id, e.g readme-2276369.
  • Try to keep the history of your pull request as clean as possible by squashing your commits: you can look at the Symfony documentation or at the Git book for more information on how to do that.

For further information on how to contribute please refer to our documentation.

Executing the automated tests

This module comes with PHPUnit tests. You need a working Drupal 8 installation and a checkout of the Rules module in the modules folder.

Unit tests only

cd /path/to/drupal-8/core
../vendor/bin/phpunit ../modules/rules/tests/src/Unit
../vendor/bin/phpunit ../modules/rules/tests/src/Integration

Unit tests and kernel/web tests

Make sure to use your DB connection details for the SIMPLETEST_DB and the URL to your local Drupal installation for SIMPLETEST_BASE_URL.

cd /path/to/drupal-8/core
export SIMPLETEST_DB=mysql://drupal-8:password@localhost/drupal-8
export SIMPLETEST_BASE_URL=http://drupal-8.localhost
../vendor/bin/phpunit ../modules/rules

Example for executing one single test file during development:

../vendor/bin/phpunit ../modules/rules/tests/src/Integration/Action/DataSetTest.php

You can also execute the test cases from the web interface at /admin/config/development/testing.