roundcubemail-plugins-kolab/plugins/libkolab/tests
Aleksander Machniak 5786172154 ACL management for DAV folders
Summary:
Implement DAV folder sharing based on draft-pot-webdav-resource-sharing standard

We keep the DAV ACL standard implementation as an option, but this standard
does not cover the folder discovery, so we'll not use it with Kolab setups.

Reviewers: #roundcube_kolab_plugins_developers

Subscribers: #roundcube_kolab_plugins_developers

Differential Revision: https://git.kolab.org/D4668
2024-04-02 15:46:33 +02:00
..
KolabDateRecurrenceTest.php Use consistent PHP code style 2024-01-24 11:24:41 +01:00
KolabStorageConfigTest.php PHPStan level:2 fixes (partial) 2024-01-25 13:47:41 +01:00
KolabStorageFolderTest.php PHPStan level:2 fixes (partial) 2024-01-25 13:47:41 +01:00
LibkolabTest.php ACL management for DAV folders 2024-04-02 15:46:33 +02:00
README.md Use Sabre/VObject v4, Partial PHP8 support 2022-11-29 15:54:43 +01:00

libkolab plugin tests

In order to run the functional tests for libkolab classes, some configuration for the Roundcube test instance need to be created. Along with the default config for a given Roundcube instance, you should provide a config specifically for running tests. To do so, create a config file named config-test.inc.php in the regular Roundcube config dir. That should provide specific db_dsnw and default_host values for testing purposes as well as the credentials of a valid IMAP user account used for running the tests with.

Add these config options used by the libkolab tests:

  // Unit tests settings
  $config['tests_username'] = 'roundcube.test@example.org';
  $config['tests_password'] = '<test-account-password>';
  $config['default_host']   = '<kolab-server>';
  
  // disable all plugins
  $config['plugins'] = [];

WARNING

Please note that the configured IMAP account as well as the Roundcube database configred in db_dsnw will be wiped and filled with test data in every test run. Under no circumstances you should use credentials of a production database or email account!

Run the tests

The tests are based on PHPUnit and need to be exected from the Roundcube test directory in order to load and initialize the Roundcube framework context.

To execute individual tests, call phpunit from the tests directory:

  cd <roundcube-dir>/tests/
  phpunit ../plugins/libkolab/tests/<filename>