From 90e8de11b013f5d3df0f5e7763ad4d597e267e53 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sat, 21 Sep 2019 19:08:52 +0200 Subject: [PATCH] Updated to Laravel 6.0 --- .phpunit.result.cache | 2 +- composer.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.phpunit.result.cache b/.phpunit.result.cache index ff470e0..e15b924 100644 --- a/.phpunit.result.cache +++ b/.phpunit.result.cache @@ -1 +1 @@ -C:37:"PHPUnit\Runner\DefaultTestResultCache":4479:{a:2:{s:7:"defects";a:2:{s:101:"Gabievi\Promocodes\Tests\CheckPromocodeValidationTest::it_returns_false_if_promocode_exceeds_quantity";i:3;s:91:"Gabievi\Promocodes\Tests\CreatePromocodesToDatabaseTest::it_can_output_all_valid_promocodes";i:3;}s:5:"times";a:38:{s:99:"Gabievi\Promocodes\Tests\ApplyPromocodeToUserTest::it_throws_exception_if_user_is_not_authenticated";d:0.087;s:93:"Gabievi\Promocodes\Tests\ApplyPromocodeToUserTest::it_returns_false_if_promocode_doesnt_exist";d:0.01;s:104:"Gabievi\Promocodes\Tests\ApplyPromocodeToUserTest::it_throws_exception_if_user_tries_to_apply_code_twice";d:0.014;s:105:"Gabievi\Promocodes\Tests\ApplyPromocodeToUserTest::it_attaches_authenticated_user_as_applied_to_promocode";d:0.012;s:104:"Gabievi\Promocodes\Tests\ApplyPromocodeToUserTest::is_returns_promocode_with_user_if_applied_successfuly";d:0.011;s:76:"Gabievi\Promocodes\Tests\ApplyPromocodeToUserTest::it_has_alias_named_reedem";d:0.01;s:105:"Gabievi\Promocodes\Tests\CheckPromocodeValidationTest::it_throws_exception_if_there_is_not_such_promocode";d:0.009;s:95:"Gabievi\Promocodes\Tests\CheckPromocodeValidationTest::it_returns_false_if_promocode_is_expired";d:0.01;s:107:"Gabievi\Promocodes\Tests\CheckPromocodeValidationTest::it_returns_false_if_promocode_is_disposable_and_used";d:0.011;s:102:"Gabievi\Promocodes\Tests\CheckPromocodeValidationTest::it_returns_promocode_model_if_validation_passes";d:0.01;s:106:"Gabievi\Promocodes\Tests\ClearRedundantPromocodesTest::it_returns_null_if_there_is_no_redundant_promocodes";d:0.009;s:106:"Gabievi\Promocodes\Tests\ClearRedundantPromocodesTest::it_removes_expired_or_used_promocodes_and_relations";d:0.015;s:94:"Gabievi\Promocodes\Tests\ConfigurationTest::it_generates_code_with_predefinded_characters_only";d:0.009;s:73:"Gabievi\Promocodes\Tests\ConfigurationTest::it_generates_code_with_prefix";d:0.01;s:73:"Gabievi\Promocodes\Tests\ConfigurationTest::it_generates_code_with_suffix";d:0.01;s:71:"Gabievi\Promocodes\Tests\ConfigurationTest::it_generates_code_with_mask";d:0.009;s:101:"Gabievi\Promocodes\Tests\ConfigurationTest::it_has_underscore_as_code_separator_for_prefix_and_suffix";d:0.009;s:104:"Gabievi\Promocodes\Tests\CreatePromocodesToDatabaseTest::it_will_create_only_one_code_without_parameters";d:0.01;s:110:"Gabievi\Promocodes\Tests\CreatePromocodesToDatabaseTest::it_can_create_several_promocodes_and_save_in_database";d:0.01;s:94:"Gabievi\Promocodes\Tests\CreatePromocodesToDatabaseTest::it_can_set_reward_value_to_promocodes";d:0.009;s:97:"Gabievi\Promocodes\Tests\CreatePromocodesToDatabaseTest::it_can_set_additional_data_to_promocodes";d:0.009;s:92:"Gabievi\Promocodes\Tests\CreatePromocodesToDatabaseTest::it_can_set_days_to_expire_promocode";d:0.009;s:101:"Gabievi\Promocodes\Tests\CreatePromocodesToDatabaseTest::it_will_create_multiuse_promocode_by_deafult";d:0.009;s:91:"Gabievi\Promocodes\Tests\CreatePromocodesToDatabaseTest::it_can_create_disposable_promocode";d:0.009;s:89:"Gabievi\Promocodes\Tests\DisablePromocodeTest::it_thows_exception_if_promocode_is_invalid";d:0.009;s:88:"Gabievi\Promocodes\Tests\DisablePromocodeTest::it_sets_expiration_date_if_code_was_valid";d:0.011;s:74:"Gabievi\Promocodes\Tests\DisablePromocodeTest::it_returns_true_if_disabled";d:0.01;s:99:"Gabievi\Promocodes\Tests\OutputRandomPromocodesTest::it_will_output_only_one_code_without_parameter";d:0.01;s:94:"Gabievi\Promocodes\Tests\OutputRandomPromocodesTest::it_can_output_several_promocodes_as_array";d:0.01;s:90:"Gabievi\Promocodes\Tests\RewardableTraitTest::it_returns_null_if_could_not_apply_promocode";d:0.009;s:102:"Gabievi\Promocodes\Tests\RewardableTraitTest::it_returns_null_in_callback_if_could_not_apply_promocode";d:0.01;s:97:"Gabievi\Promocodes\Tests\RewardableTraitTest::it_throws_exception_if_user_already_applied_to_code";d:0.011;s:94:"Gabievi\Promocodes\Tests\RewardableTraitTest::it_attaches_current_user_as_applied_to_promocode";d:0.011;s:99:"Gabievi\Promocodes\Tests\RewardableTraitTest::is_returns_promocode_with_user_if_applied_successfuly";d:0.01;s:111:"Gabievi\Promocodes\Tests\RewardableTraitTest::is_returns_promocode_with_user_in_callback_if_applied_successfuly";d:0.011;s:76:"Gabievi\Promocodes\Tests\RewardableTraitTest::it_has_alias_named_reedem_code";d:0.015;s:101:"Gabievi\Promocodes\Tests\CheckPromocodeValidationTest::it_returns_false_if_promocode_exceeds_quantity";d:0.012;s:91:"Gabievi\Promocodes\Tests\CreatePromocodesToDatabaseTest::it_can_output_all_valid_promocodes";d:0.01;}}} \ No newline at end of file +C:37:"PHPUnit\Runner\DefaultTestResultCache":4275:{a:2:{s:7:"defects";a:0:{}s:5:"times";a:38:{s:99:"Gabievi\Promocodes\Tests\ApplyPromocodeToUserTest::it_throws_exception_if_user_is_not_authenticated";d:0.454;s:93:"Gabievi\Promocodes\Tests\ApplyPromocodeToUserTest::it_returns_false_if_promocode_doesnt_exist";d:0.018;s:104:"Gabievi\Promocodes\Tests\ApplyPromocodeToUserTest::it_throws_exception_if_user_tries_to_apply_code_twice";d:0.024;s:105:"Gabievi\Promocodes\Tests\ApplyPromocodeToUserTest::it_attaches_authenticated_user_as_applied_to_promocode";d:0.017;s:104:"Gabievi\Promocodes\Tests\ApplyPromocodeToUserTest::is_returns_promocode_with_user_if_applied_successfuly";d:0.016;s:76:"Gabievi\Promocodes\Tests\ApplyPromocodeToUserTest::it_has_alias_named_reedem";d:0.015;s:105:"Gabievi\Promocodes\Tests\CheckPromocodeValidationTest::it_throws_exception_if_there_is_not_such_promocode";d:0.011;s:95:"Gabievi\Promocodes\Tests\CheckPromocodeValidationTest::it_returns_false_if_promocode_is_expired";d:0.014;s:107:"Gabievi\Promocodes\Tests\CheckPromocodeValidationTest::it_returns_false_if_promocode_is_disposable_and_used";d:0.013;s:102:"Gabievi\Promocodes\Tests\CheckPromocodeValidationTest::it_returns_promocode_model_if_validation_passes";d:0.014;s:101:"Gabievi\Promocodes\Tests\CheckPromocodeValidationTest::it_returns_false_if_promocode_exceeds_quantity";d:0.016;s:106:"Gabievi\Promocodes\Tests\ClearRedundantPromocodesTest::it_returns_null_if_there_is_no_redundant_promocodes";d:0.012;s:106:"Gabievi\Promocodes\Tests\ClearRedundantPromocodesTest::it_removes_expired_or_used_promocodes_and_relations";d:0.022;s:94:"Gabievi\Promocodes\Tests\ConfigurationTest::it_generates_code_with_predefinded_characters_only";d:0.013;s:73:"Gabievi\Promocodes\Tests\ConfigurationTest::it_generates_code_with_prefix";d:0.014;s:73:"Gabievi\Promocodes\Tests\ConfigurationTest::it_generates_code_with_suffix";d:0.012;s:71:"Gabievi\Promocodes\Tests\ConfigurationTest::it_generates_code_with_mask";d:0.011;s:101:"Gabievi\Promocodes\Tests\ConfigurationTest::it_has_underscore_as_code_separator_for_prefix_and_suffix";d:0.018;s:104:"Gabievi\Promocodes\Tests\CreatePromocodesToDatabaseTest::it_will_create_only_one_code_without_parameters";d:0.014;s:110:"Gabievi\Promocodes\Tests\CreatePromocodesToDatabaseTest::it_can_create_several_promocodes_and_save_in_database";d:0.013;s:94:"Gabievi\Promocodes\Tests\CreatePromocodesToDatabaseTest::it_can_set_reward_value_to_promocodes";d:0.012;s:97:"Gabievi\Promocodes\Tests\CreatePromocodesToDatabaseTest::it_can_set_additional_data_to_promocodes";d:0.011;s:92:"Gabievi\Promocodes\Tests\CreatePromocodesToDatabaseTest::it_can_set_days_to_expire_promocode";d:0.012;s:101:"Gabievi\Promocodes\Tests\CreatePromocodesToDatabaseTest::it_will_create_multiuse_promocode_by_deafult";d:0.012;s:91:"Gabievi\Promocodes\Tests\CreatePromocodesToDatabaseTest::it_can_create_disposable_promocode";d:0.011;s:91:"Gabievi\Promocodes\Tests\CreatePromocodesToDatabaseTest::it_can_output_all_valid_promocodes";d:0.012;s:89:"Gabievi\Promocodes\Tests\DisablePromocodeTest::it_thows_exception_if_promocode_is_invalid";d:0.012;s:88:"Gabievi\Promocodes\Tests\DisablePromocodeTest::it_sets_expiration_date_if_code_was_valid";d:0.012;s:74:"Gabievi\Promocodes\Tests\DisablePromocodeTest::it_returns_true_if_disabled";d:0.013;s:99:"Gabievi\Promocodes\Tests\OutputRandomPromocodesTest::it_will_output_only_one_code_without_parameter";d:0.011;s:94:"Gabievi\Promocodes\Tests\OutputRandomPromocodesTest::it_can_output_several_promocodes_as_array";d:0.011;s:90:"Gabievi\Promocodes\Tests\RewardableTraitTest::it_returns_null_if_could_not_apply_promocode";d:0.012;s:102:"Gabievi\Promocodes\Tests\RewardableTraitTest::it_returns_null_in_callback_if_could_not_apply_promocode";d:0.011;s:97:"Gabievi\Promocodes\Tests\RewardableTraitTest::it_throws_exception_if_user_already_applied_to_code";d:0.014;s:94:"Gabievi\Promocodes\Tests\RewardableTraitTest::it_attaches_current_user_as_applied_to_promocode";d:0.014;s:99:"Gabievi\Promocodes\Tests\RewardableTraitTest::is_returns_promocode_with_user_if_applied_successfuly";d:0.03;s:111:"Gabievi\Promocodes\Tests\RewardableTraitTest::is_returns_promocode_with_user_in_callback_if_applied_successfuly";d:0.015;s:76:"Gabievi\Promocodes\Tests\RewardableTraitTest::it_has_alias_named_reedem_code";d:0.014;}}} \ No newline at end of file diff --git a/composer.json b/composer.json index 751b5d3..82d1f24 100644 --- a/composer.json +++ b/composer.json @@ -19,11 +19,11 @@ ], "require": { "php" : "^7.2", - "laravel/framework": "~5.8.0" + "laravel/framework": "~5.8||~6.0" }, "require-dev": { - "orchestra/testbench": "~3.8.0", - "phpunit/phpunit": "^8.0" + "orchestra/testbench": "~4.0", + "phpunit/phpunit": "^8.3" }, "autoload": { "psr-4": {