2 ====================================
4 Visit [Pbt's documentation page on Drupal.org](https://www.drupal.org/docs/8/modules/permissions-by-term) to
5 learn how to use this module.
7 ## Modules which extend PbT's functionality
8 - [Webform Permissions By Term](https://www.drupal.org/project/webform_permissions_by_term)
9 This modules will be merged into PbT soon.
10 - [Permissions by Entity](https://www.drupal.org/project/permissions_by_entity)
11 This module is now merged into PbT
15 ### composer.json config
16 Make sure that the dependencies the PbT module are installed. Check your drupal's `composer.json` file
17 for the following contents:
20 "composer/installers": "^1.0.24",
21 "wikimedia/composer-merge-plugin": "~1.4"
29 "modules/permissions_by_term/composer.json"
40 "Drupal\\Core\\Composer\\": "core/lib/Drupal/Core/Composer",
41 "Drupal\\Tests\\permissions_by_term\\Behat\\Context\\": "modules/permissions_by_term/tests/src/Behat/Context"
46 Use the file at `tests/src/Behat/behat.yml.dist` as a template for your needs. Copy and name it to `behat.yml` and change
47 it's paths according to your needs.
50 It is recommended to use the [Chromedriver](https://sites.google.com/a/chromium.org/chromedriver/) as the driver between
51 your Google Chrome browser and Behat. Make sure, that the Chromedriver version matches your operating system and your
52 Google Chrome browser version.
54 ### Quick testing with a SQlite database
55 In permissions_by_term/tests/src/Behat/fixtures/db.sqlite` you can find a SQLite database to test from. It is a standard
56 Drupal 8 installation with PbT module installed. That way each test run proceeds quicker, because it is 1 file
57 instead an entire relational database.
59 Make sure that the path to the SQLite database is contained in your `settings.php` file. PbT awaits that the path is
60 `/sites/default/db.sqlite`. E.g.:
62 $databases['default']['default'] = array (
63 'database' => '/Users/peter/Dev/mamp/permissions-by-term/sites/default/db.sqlite',
65 'namespace' => 'Drupal\\Core\\Database\\Driver\\sqlite',
69 The database file location is fixed, because the DB gets wiped after each Behat test suite run.