From d39ef0bf94d814a8488e8be805d9d4b49566ee50 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 8 Mar 2018 10:19:42 +0200 Subject: [PATCH] Working on tests --- .travis.yml | 8 +- composer.json | 2 +- composer.lock | 202 ++++++++++++------------------ tests/acceptance/TaxRatesCest.php | 2 + 4 files changed, 86 insertions(+), 128 deletions(-) diff --git a/.travis.yml b/.travis.yml index 45e121d2841..7ad4e50c150 100644 --- a/.travis.yml +++ b/.travis.yml @@ -76,10 +76,10 @@ before_script: script: - php ./vendor/codeception/codeception/codecept run --debug acceptance APICest.php - php ./vendor/codeception/codeception/codecept run --debug acceptance TaxRatesCest.php - #- php ./vendor/codeception/codeception/codecept run --debug acceptance CheckBalanceCest.php - #- php ./vendor/codeception/codeception/codecept run --debug acceptance ClientCest.php - #- php ./vendor/codeception/codeception/codecept run --debug acceptance ExpenseCest.php - #- php ./vendor/codeception/codeception/codecept run --debug acceptance CreditCest.php + - php ./vendor/codeception/codeception/codecept run --debug acceptance CheckBalanceCest.php + - php ./vendor/codeception/codeception/codecept run --debug acceptance ClientCest.php + - php ./vendor/codeception/codeception/codecept run --debug acceptance ExpenseCest.php + - php ./vendor/codeception/codeception/codecept run --debug acceptance CreditCest.php #- php ./vendor/codeception/codeception/codecept run --debug acceptance InvoiceCest.php #- php ./vendor/codeception/codeception/codecept run --debug acceptance QuoteCest.php #- php ./vendor/codeception/codeception/codecept run --debug acceptance InvoiceDesignCest.php diff --git a/composer.json b/composer.json index 8a3b803e7e8..2a818cffa99 100644 --- a/composer.json +++ b/composer.json @@ -67,7 +67,7 @@ }, "require-dev": { "symfony/dom-crawler": "~3.1", - "codeception/c3": "~2.0", + "codeception/c3": "2.*", "codeception/codeception": "2.*", "phpspec/phpspec": "~2.1", "phpunit/phpunit": "~5.7" diff --git a/composer.lock b/composer.lock index 4551d800eee..9c553acf3a9 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "dcf45ca36bb89b54343dae0f91025c98", - "content-hash": "db2095745f78028aa6c6152c89f398d9", + "hash": "90db9851db82d5398c2c173955211b0f", + "content-hash": "958cf422514450eb39c743ebd6c3a3c8", "packages": [ { "name": "abdala/omnipay-pagseguro", @@ -393,16 +393,16 @@ }, { "name": "aws/aws-sdk-php", - "version": "3.52.20", + "version": "3.52.22", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "299ac47ff5171d6a25f788dc333c0a3c8db40f69" + "reference": "f42076f6347590dfbf4de7befc19bb660be0ea22" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/299ac47ff5171d6a25f788dc333c0a3c8db40f69", - "reference": "299ac47ff5171d6a25f788dc333c0a3c8db40f69", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/f42076f6347590dfbf4de7befc19bb660be0ea22", + "reference": "f42076f6347590dfbf4de7befc19bb660be0ea22", "shasum": "" }, "require": { @@ -469,7 +469,7 @@ "s3", "sdk" ], - "time": "2018-03-01 20:18:42" + "time": "2018-03-07 22:55:58" }, { "name": "bacon/bacon-qr-code", @@ -2330,19 +2330,20 @@ }, { "name": "erusev/parsedown", - "version": "1.7.0", + "version": "1.7.1", "source": { "type": "git", "url": "https://github.com/erusev/parsedown.git", - "reference": "6678d59be48c4be64eaca6ce70bea48a09488cc2" + "reference": "92e9c27ba0e74b8b028b111d1b6f956a15c01fc1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/erusev/parsedown/zipball/6678d59be48c4be64eaca6ce70bea48a09488cc2", - "reference": "6678d59be48c4be64eaca6ce70bea48a09488cc2", + "url": "https://api.github.com/repos/erusev/parsedown/zipball/92e9c27ba0e74b8b028b111d1b6f956a15c01fc1", + "reference": "92e9c27ba0e74b8b028b111d1b6f956a15c01fc1", "shasum": "" }, "require": { + "ext-mbstring": "*", "php": ">=5.3.0" }, "require-dev": { @@ -2371,7 +2372,7 @@ "markdown", "parser" ], - "time": "2018-02-28 11:41:37" + "time": "2018-03-08 01:11:30" }, { "name": "ezyang/htmlpurifier", @@ -2754,16 +2755,16 @@ }, { "name": "google/apiclient-services", - "version": "v0.48", + "version": "v0.49", "source": { "type": "git", "url": "https://github.com/google/google-api-php-client-services.git", - "reference": "e8f3d6c4da47274ff375ee1d62b7a0ba6969d039" + "reference": "7552d7d1bb92e933fc93088014c8c2555c0feab6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/google/google-api-php-client-services/zipball/e8f3d6c4da47274ff375ee1d62b7a0ba6969d039", - "reference": "e8f3d6c4da47274ff375ee1d62b7a0ba6969d039", + "url": "https://api.github.com/repos/google/google-api-php-client-services/zipball/7552d7d1bb92e933fc93088014c8c2555c0feab6", + "reference": "7552d7d1bb92e933fc93088014c8c2555c0feab6", "shasum": "" }, "require": { @@ -2787,7 +2788,7 @@ "keywords": [ "google" ], - "time": "2018-02-25 00:23:11" + "time": "2018-03-04 00:24:05" }, { "name": "google/auth", @@ -3061,16 +3062,16 @@ }, { "name": "google/protobuf", - "version": "v3.5.1.1", + "version": "v3.5.2", "source": { "type": "git", "url": "https://github.com/google/protobuf.git", - "reference": "860bd12fec5c69e6529565165532b3d5108a7d97" + "reference": "b5fbb742af122b565925987e65c08957739976a7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/google/protobuf/zipball/860bd12fec5c69e6529565165532b3d5108a7d97", - "reference": "860bd12fec5c69e6529565165532b3d5108a7d97", + "url": "https://api.github.com/repos/google/protobuf/zipball/b5fbb742af122b565925987e65c08957739976a7", + "reference": "b5fbb742af122b565925987e65c08957739976a7", "shasum": "" }, "require": { @@ -3098,7 +3099,7 @@ "keywords": [ "proto" ], - "time": "2018-01-05 21:42:10" + "time": "2018-03-06 03:54:18" }, { "name": "grpc/grpc", @@ -3726,16 +3727,16 @@ }, { "name": "jaybizzle/crawler-detect", - "version": "v1.2.59", + "version": "v1.2.60", "source": { "type": "git", "url": "https://github.com/JayBizzle/Crawler-Detect.git", - "reference": "8b371ed0fc16a3b13ebd5f00fd4a3ffb5420262e" + "reference": "6e9abfe7100f1c8febfa600b3568192989f10c2e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/JayBizzle/Crawler-Detect/zipball/8b371ed0fc16a3b13ebd5f00fd4a3ffb5420262e", - "reference": "8b371ed0fc16a3b13ebd5f00fd4a3ffb5420262e", + "url": "https://api.github.com/repos/JayBizzle/Crawler-Detect/zipball/6e9abfe7100f1c8febfa600b3568192989f10c2e", + "reference": "6e9abfe7100f1c8febfa600b3568192989f10c2e", "shasum": "" }, "require": { @@ -3771,7 +3772,7 @@ "crawlerdetect", "php crawler detect" ], - "time": "2018-02-22 19:04:46" + "time": "2018-03-05 20:50:06" }, { "name": "jaybizzle/laravel-crawler-detect", @@ -4347,16 +4348,16 @@ }, { "name": "laravel/tinker", - "version": "v1.0.3", + "version": "v1.0.4", "source": { "type": "git", "url": "https://github.com/laravel/tinker.git", - "reference": "852c2abe0b0991555a403f1c0583e64de6acb4a6" + "reference": "eb8d3cfb41b7f74fb0ef4724e459d44f4cbb35b8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/tinker/zipball/852c2abe0b0991555a403f1c0583e64de6acb4a6", - "reference": "852c2abe0b0991555a403f1c0583e64de6acb4a6", + "url": "https://api.github.com/repos/laravel/tinker/zipball/eb8d3cfb41b7f74fb0ef4724e459d44f4cbb35b8", + "reference": "eb8d3cfb41b7f74fb0ef4724e459d44f4cbb35b8", "shasum": "" }, "require": { @@ -4406,7 +4407,7 @@ "laravel", "psysh" ], - "time": "2017-12-18 16:25:11" + "time": "2018-03-06 13:48:07" }, { "name": "laravelcollective/html", @@ -4872,16 +4873,16 @@ }, { "name": "maatwebsite/excel", - "version": "2.1.25", + "version": "2.1.26", "source": { "type": "git", "url": "https://github.com/Maatwebsite/Laravel-Excel.git", - "reference": "5a8ac41af85cca4ca88971b2ab1a6ef674b1d82a" + "reference": "c93b4658e73e9bafc33ad26959402ab8e9722ca2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Maatwebsite/Laravel-Excel/zipball/5a8ac41af85cca4ca88971b2ab1a6ef674b1d82a", - "reference": "5a8ac41af85cca4ca88971b2ab1a6ef674b1d82a", + "url": "https://api.github.com/repos/Maatwebsite/Laravel-Excel/zipball/c93b4658e73e9bafc33ad26959402ab8e9722ca2", + "reference": "c93b4658e73e9bafc33ad26959402ab8e9722ca2", "shasum": "" }, "require": { @@ -4946,7 +4947,7 @@ "import", "laravel" ], - "time": "2018-02-08 16:52:17" + "time": "2018-03-05 10:01:36" }, { "name": "maximebf/debugbar", @@ -8375,12 +8376,12 @@ "source": { "type": "git", "url": "https://github.com/Roave/SecurityAdvisories.git", - "reference": "5eb59cd740f7f76a7ad680089b6db941c645b7ba" + "reference": "664836e89c7ecad3dbaabc1572ea752c0d532d80" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/5eb59cd740f7f76a7ad680089b6db941c645b7ba", - "reference": "5eb59cd740f7f76a7ad680089b6db941c645b7ba", + "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/664836e89c7ecad3dbaabc1572ea752c0d532d80", + "reference": "664836e89c7ecad3dbaabc1572ea752c0d532d80", "shasum": "" }, "conflict": { @@ -8411,7 +8412,7 @@ "doctrine/orm": ">=2,<2.4.8|>=2.5,<2.5.1", "dompdf/dompdf": ">=0.6,<0.6.2", "drupal/core": ">=8,<8.4.5", - "drupal/drupal": ">=8,<8.3.7", + "drupal/drupal": ">=8,<8.4.5", "erusev/parsedown": "<1.7", "ezsystems/ezpublish-legacy": ">=5.3,<5.3.12.3|>=5.4,<5.4.11.3|>=2017.8,<2017.8.1.1|>=2017.12,<2017.12.2.1", "firebase/php-jwt": "<2", @@ -8434,7 +8435,7 @@ "oro/crm": ">=1.7,<1.7.4", "oro/platform": ">=1.7,<1.7.4", "padraic/humbug_get_contents": "<1.1.2", - "pagarme/pagarme-php": ">=0,<9.9.99", + "pagarme/pagarme-php": ">=0,<3", "paragonie/random_compat": "<2", "phpmailer/phpmailer": ">=5,<5.2.24", "phpunit/phpunit": ">=4.8.19,<4.8.28|>=5.0.10,<5.6.3", @@ -8448,7 +8449,7 @@ "silverstripe/forum": "<=0.6.1|>=0.7,<=0.7.3", "silverstripe/framework": ">=3,<3.3", "silverstripe/userforms": "<3", - "simplesamlphp/saml2": "<1.10.4|>=2,<2.3.5|>=3,<3.1.1", + "simplesamlphp/saml2": "<1.10.6|>=2,<2.3.8|>=3,<3.1.4", "simplesamlphp/simplesamlphp": "<1.15.2", "simplesamlphp/simplesamlphp-module-infocard": "<1.0.1", "socalnick/scn-social-auth": "<1.15.2", @@ -8523,7 +8524,7 @@ } ], "description": "Prevents installation of composer packages with known security vulnerabilities: no API, simply require it", - "time": "2018-03-02 15:31:47" + "time": "2018-03-07 15:45:44" }, { "name": "sabre/uri", @@ -8920,7 +8921,7 @@ }, { "name": "symfony/class-loader", - "version": "v3.4.5", + "version": "v3.4.6", "source": { "type": "git", "url": "https://github.com/symfony/class-loader.git", @@ -8976,7 +8977,7 @@ }, { "name": "symfony/config", - "version": "v3.4.5", + "version": "v3.4.6", "source": { "type": "git", "url": "https://github.com/symfony/config.git", @@ -9039,7 +9040,7 @@ }, { "name": "symfony/console", - "version": "v3.4.5", + "version": "v3.4.6", "source": { "type": "git", "url": "https://github.com/symfony/console.git", @@ -9108,7 +9109,7 @@ }, { "name": "symfony/css-selector", - "version": "v3.4.5", + "version": "v3.4.6", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", @@ -9161,7 +9162,7 @@ }, { "name": "symfony/debug", - "version": "v3.4.5", + "version": "v3.4.6", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", @@ -9217,16 +9218,16 @@ }, { "name": "symfony/dependency-injection", - "version": "v3.4.5", + "version": "v3.4.6", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "752c45dc831dc42a472f0ab8ae0450b63b840656" + "reference": "12e901abc1cb0d637a0e5abe9923471361d96b07" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/752c45dc831dc42a472f0ab8ae0450b63b840656", - "reference": "752c45dc831dc42a472f0ab8ae0450b63b840656", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/12e901abc1cb0d637a0e5abe9923471361d96b07", + "reference": "12e901abc1cb0d637a0e5abe9923471361d96b07", "shasum": "" }, "require": { @@ -9284,7 +9285,7 @@ ], "description": "Symfony DependencyInjection Component", "homepage": "https://symfony.com", - "time": "2018-02-26 14:27:04" + "time": "2018-03-04 03:54:53" }, { "name": "symfony/event-dispatcher", @@ -9348,7 +9349,7 @@ }, { "name": "symfony/filesystem", - "version": "v3.4.5", + "version": "v3.4.6", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", @@ -9397,16 +9398,16 @@ }, { "name": "symfony/finder", - "version": "v3.4.5", + "version": "v3.4.6", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "6a615613745cef820d807443f32076bb9f5d0a38" + "reference": "a479817ce0a9e4adfd7d39c6407c95d97c254625" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/6a615613745cef820d807443f32076bb9f5d0a38", - "reference": "6a615613745cef820d807443f32076bb9f5d0a38", + "url": "https://api.github.com/repos/symfony/finder/zipball/a479817ce0a9e4adfd7d39c6407c95d97c254625", + "reference": "a479817ce0a9e4adfd7d39c6407c95d97c254625", "shasum": "" }, "require": { @@ -9442,7 +9443,7 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2018-02-11 17:15:12" + "time": "2018-03-05 18:28:11" }, { "name": "symfony/http-foundation", @@ -9500,16 +9501,16 @@ }, { "name": "symfony/http-kernel", - "version": "v3.4.5", + "version": "v3.4.6", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "494f950becf513c174f52f9010cedb9026c12a92" + "reference": "a443bbbd93682aa08e623fade4c94edd586ed2de" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/494f950becf513c174f52f9010cedb9026c12a92", - "reference": "494f950becf513c174f52f9010cedb9026c12a92", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/a443bbbd93682aa08e623fade4c94edd586ed2de", + "reference": "a443bbbd93682aa08e623fade4c94edd586ed2de", "shasum": "" }, "require": { @@ -9584,11 +9585,11 @@ ], "description": "Symfony HttpKernel Component", "homepage": "https://symfony.com", - "time": "2018-03-01 19:23:56" + "time": "2018-03-05 19:41:07" }, { "name": "symfony/options-resolver", - "version": "v3.4.5", + "version": "v3.4.6", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", @@ -9868,7 +9869,7 @@ }, { "name": "symfony/process", - "version": "v3.4.5", + "version": "v3.4.6", "source": { "type": "git", "url": "https://github.com/symfony/process.git", @@ -9917,7 +9918,7 @@ }, { "name": "symfony/routing", - "version": "v3.4.5", + "version": "v3.4.6", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", @@ -9995,7 +9996,7 @@ }, { "name": "symfony/translation", - "version": "v3.4.5", + "version": "v3.4.6", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", @@ -10063,7 +10064,7 @@ }, { "name": "symfony/var-dumper", - "version": "v3.4.5", + "version": "v3.4.6", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", @@ -10132,7 +10133,7 @@ }, { "name": "symfony/yaml", - "version": "v3.4.5", + "version": "v3.4.6", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", @@ -11242,16 +11243,16 @@ "packages-dev": [ { "name": "behat/gherkin", - "version": "v4.4.5", + "version": "v4.5.1", "source": { "type": "git", "url": "https://github.com/Behat/Gherkin.git", - "reference": "5c14cff4f955b17d20d088dec1bde61c0539ec74" + "reference": "74ac03d52c5e23ad8abd5c5cce4ab0e8dc1b530a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Behat/Gherkin/zipball/5c14cff4f955b17d20d088dec1bde61c0539ec74", - "reference": "5c14cff4f955b17d20d088dec1bde61c0539ec74", + "url": "https://api.github.com/repos/Behat/Gherkin/zipball/74ac03d52c5e23ad8abd5c5cce4ab0e8dc1b530a", + "reference": "74ac03d52c5e23ad8abd5c5cce4ab0e8dc1b530a", "shasum": "" }, "require": { @@ -11297,7 +11298,7 @@ "gherkin", "parser" ], - "time": "2016-10-30 11:50:56" + "time": "2017-08-30 11:04:43" }, { "name": "codeception/c3", @@ -12896,54 +12897,9 @@ "homepage": "https://github.com/sebastianbergmann/version", "time": "2016-10-03 07:35:21" }, - { - "name": "stecman/symfony-console-completion", - "version": "0.7.0", - "source": { - "type": "git", - "url": "https://github.com/stecman/symfony-console-completion.git", - "reference": "5461d43e53092b3d3b9dbd9d999f2054730f4bbb" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/stecman/symfony-console-completion/zipball/5461d43e53092b3d3b9dbd9d999f2054730f4bbb", - "reference": "5461d43e53092b3d3b9dbd9d999f2054730f4bbb", - "shasum": "" - }, - "require": { - "php": ">=5.3.2", - "symfony/console": "~2.3 || ~3.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "0.6.x-dev" - } - }, - "autoload": { - "psr-4": { - "Stecman\\Component\\Symfony\\Console\\BashCompletion\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Stephen Holdaway", - "email": "stephen@stecman.co.nz" - } - ], - "description": "Automatic BASH completion for Symfony Console Component based applications.", - "time": "2016-02-24 05:08:54" - }, { "name": "symfony/browser-kit", - "version": "v3.4.5", + "version": "v3.4.6", "source": { "type": "git", "url": "https://github.com/symfony/browser-kit.git", @@ -13000,7 +12956,7 @@ }, { "name": "symfony/dom-crawler", - "version": "v3.4.5", + "version": "v3.4.6", "source": { "type": "git", "url": "https://github.com/symfony/dom-crawler.git", diff --git a/tests/acceptance/TaxRatesCest.php b/tests/acceptance/TaxRatesCest.php index 074038b0c93..bbd4bd31e38 100644 --- a/tests/acceptance/TaxRatesCest.php +++ b/tests/acceptance/TaxRatesCest.php @@ -141,10 +141,12 @@ public function invoiceTaxRates(AcceptanceTester $I) // check total is right in list view $I->see("\${$total}"); + /* // enable line item taxes $I->amOnPage('/settings/tax_rates'); $I->selectOption('#tax_select1', ''); $I->click('Save'); + */ } }