Ordermanager/src/tests
2023-05-03 14:57:20 +02:00
..
integration add 5.1.1.0 ioncube PHP 7.3-7.4 2023-01-02 10:44:28 +01:00
tools add 5.1.1.3 ioncube PHP 7.3-7.4 2023-05-03 14:57:20 +02:00
unit add 5.1.1.3 ioncube PHP 7.3-7.4 2023-05-03 14:57:20 +02:00
additional.inc.php add 5.1.0.0 ioncube PHP 7.3-7.4 2022-09-01 14:15:03 +02:00
d3ordermanager_config.php add 5.1.1.3 ioncube PHP 7.3-7.4 2023-05-03 14:57:20 +02:00
phpunit.xml add 5.0.0.0 ioncube PHP 7.3-8.0 2021-04-28 14:06:02 +02:00
README.md add 5.1.0.0 ioncube PHP 7.3-7.4 2022-09-01 14:15:03 +02:00

D3 Ordermanager Tests

Requirements

Both unit and acceptance tests require OXID Testing Library installed. See https://github.com/OXID-eSales/testing_library.

Configuration

Make sure the module has been activated with a valid license key.

Please install the packages listed in the composer.json in "require-dev". Unfortunately Composer does not provide an automatic installation.

Here is an example of Testing Library configuration file oxideshop/test_config.yml

# This file is auto-generated during the composer install
mandatory_parameters:
    shop_path: /var/www/oxideshop/source
    shop_tests_path: /var/www/oxideshop/tests
    partial_module_paths: d3/ordermanager
optional_parameters:
    shop_url: null
    shop_serial: ''
    enable_varnish: false
    is_subshop: false
    install_shop: false
    remote_server_dir: null
    shop_setup_path: null
    restore_shop_after_tests_suite: false
    test_database_name: null
    restore_after_acceptance_tests: false
    restore_after_unit_tests: false
    tmp_path: /tmp/oxid_test_library/
    database_restoration_class: DatabaseRestorer
    activate_all_modules: false
    run_tests_for_shop: false
    run_tests_for_modules: true
    screen_shots_path: null
    screen_shots_url: null
    browser_name: firefox
    selenium_server_ip: 127.0.0.1
    selenium_server_port: '4444'
    additional_test_paths: null

Unit Tests

To execute unit tests run the following:

cd /var/www/oxideshop/
PHPBIN=/usr/bin/php7.4 ./vendor/bin/runtests