roundcubemail-plugins-kolab/plugins/libkolab/tests
Aleksander Machniak a1cd95152c Align event start date with the first occurrence
Summary:
When a recurring event start date does not match a recurrence pattern
(e.g. an event recurring on Fridays is created on Thursday),
we move the start date to the date of the first occurrence.
There's also a checkbox to keep the old behavior where the
start date was not modified.

Reviewers: vanmeeuwen

Reviewed By: vanmeeuwen

Differential Revision: https://git.kolab.org/D536
2017-09-12 13:53:34 +02:00
..
kolab_date_recurrence.php Align event start date with the first occurrence 2017-09-12 13:53:34 +02:00
kolab_storage_config.php Fix so save() and delete() update in-memory tags cache (T133) - fixes duplicated tags issue 2015-06-24 07:08:35 -04:00
kolab_storage_folder.php Don't use private namespace for folder uniqueid annotations (T491) 2015-07-21 04:36:34 -04:00
README.md Add unit/functional tests for kolab_storage_folder error checking methods 2015-02-03 22:14:06 +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'] = array();

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>