From 153129b1ee232e7f499aa3c00b4fa1f272d2e105 Mon Sep 17 00:00:00 2001 From: sagautam5 Date: Sun, 21 Jan 2024 11:27:13 +0545 Subject: [PATCH] update tests --- composer.json | 2 +- .../DistrictMunicipalityFeatureTest.php | 8 ++++---- .../MunicipalityCountByCategoryTest.php | 8 ++++---- tests/Feature/ProvinceDistrictFeatureTest.php | 8 ++++---- tests/Feature/StatTest.php | 10 +++++----- tests/LocalStateTest.php | 19 +++++++++++++++++++ tests/Unit/CategoryTest.php | 8 ++++---- tests/Unit/DistrictTest.php | 8 ++++---- tests/Unit/HelperTest.php | 8 ++++---- tests/Unit/MunicipalityTest.php | 8 ++++---- tests/Unit/ProvinceTest.php | 8 ++++---- 11 files changed, 57 insertions(+), 38 deletions(-) create mode 100644 tests/LocalStateTest.php diff --git a/composer.json b/composer.json index c9c5398..abc3f98 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "require": { }, "require-dev": { - "phpunit/phpunit": "4.0.*" + "phpunit/phpunit": "10.0.*" }, "autoload": { "psr-4": { diff --git a/tests/Feature/DistrictMunicipalityFeatureTest.php b/tests/Feature/DistrictMunicipalityFeatureTest.php index 609dcf5..e5e373c 100644 --- a/tests/Feature/DistrictMunicipalityFeatureTest.php +++ b/tests/Feature/DistrictMunicipalityFeatureTest.php @@ -1,10 +1,10 @@ language = $_ENV['APP_LANG']; $this->district = new District($this->language); diff --git a/tests/Feature/MunicipalityCountByCategoryTest.php b/tests/Feature/MunicipalityCountByCategoryTest.php index 48cbc4f..c9b4d0a 100644 --- a/tests/Feature/MunicipalityCountByCategoryTest.php +++ b/tests/Feature/MunicipalityCountByCategoryTest.php @@ -1,10 +1,10 @@ language = $_ENV['APP_LANG']; $this->municipality = new Municipality($this->language); diff --git a/tests/Feature/ProvinceDistrictFeatureTest.php b/tests/Feature/ProvinceDistrictFeatureTest.php index c5c59cb..d3b373b 100644 --- a/tests/Feature/ProvinceDistrictFeatureTest.php +++ b/tests/Feature/ProvinceDistrictFeatureTest.php @@ -1,13 +1,13 @@ language = $_ENV['APP_LANG']; $this->province = new Province($this->language); diff --git a/tests/Feature/StatTest.php b/tests/Feature/StatTest.php index 136afef..de5e75a 100644 --- a/tests/Feature/StatTest.php +++ b/tests/Feature/StatTest.php @@ -1,13 +1,13 @@ language = $_ENV['APP_LANG']; $this->municipality = new Municipality($this->language); } diff --git a/tests/LocalStateTest.php b/tests/LocalStateTest.php new file mode 100644 index 0000000..38aadc2 --- /dev/null +++ b/tests/LocalStateTest.php @@ -0,0 +1,19 @@ +lang = $_ENV['APP_LANG']; $this->category = new Category($this->lang); diff --git a/tests/Unit/DistrictTest.php b/tests/Unit/DistrictTest.php index 741102c..bff6509 100644 --- a/tests/Unit/DistrictTest.php +++ b/tests/Unit/DistrictTest.php @@ -1,13 +1,13 @@ language = $_ENV['APP_LANG']; $this->district = new District($this->language); diff --git a/tests/Unit/HelperTest.php b/tests/Unit/HelperTest.php index ba404ed..46304fc 100644 --- a/tests/Unit/HelperTest.php +++ b/tests/Unit/HelperTest.php @@ -1,13 +1,13 @@ helper = new Helper(); } diff --git a/tests/Unit/MunicipalityTest.php b/tests/Unit/MunicipalityTest.php index 8bcfc58..5815575 100644 --- a/tests/Unit/MunicipalityTest.php +++ b/tests/Unit/MunicipalityTest.php @@ -1,13 +1,13 @@ language = $_ENV['APP_LANG']; diff --git a/tests/Unit/ProvinceTest.php b/tests/Unit/ProvinceTest.php index 94d7e40..fd74577 100644 --- a/tests/Unit/ProvinceTest.php +++ b/tests/Unit/ProvinceTest.php @@ -1,13 +1,13 @@ language = $_ENV['APP_LANG'];