From bbe84950577f263fbe368e800b1405811a28d5c9 Mon Sep 17 00:00:00 2001 From: Ruslan Baidan Date: Wed, 12 May 2021 12:04:05 +0200 Subject: [PATCH] The dependency and script updates. --- CHANGELOG.md | 2 +- composer.lock | 8 ++-- public/index.php | 3 ++ scripts/update-all.sh | 4 +- .../AnrExistenceValidatorTest.php | 37 +++++++++++++++++++ 5 files changed, 47 insertions(+), 7 deletions(-) create mode 100644 tests/Unit/Validator/FieldValidator/AnrExistenceValidatorTest.php diff --git a/CHANGELOG.md b/CHANGELOG.md index f1f18ca..622b490 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ MONARC Changelog ================ -## 2.10.3 (2021-05-10) Includes bug-fixes, new features and an enhancement. +## 2.10.3 (2021-05-12) Includes bug-fixes, new features and an enhancement. ### New diff --git a/composer.lock b/composer.lock index d261dc9..8308869 100644 --- a/composer.lock +++ b/composer.lock @@ -4619,12 +4619,12 @@ "source": { "type": "git", "url": "https://github.com/monarc-project/zm-client.git", - "reference": "d5557f7eab2bf7764cb31001f8dfa793ab90f66d" + "reference": "b2a23fa9a6565d71eaf29cd754f5cac20da0d08f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/monarc-project/zm-client/zipball/d5557f7eab2bf7764cb31001f8dfa793ab90f66d", - "reference": "d5557f7eab2bf7764cb31001f8dfa793ab90f66d", + "url": "https://api.github.com/repos/monarc-project/zm-client/zipball/b2a23fa9a6565d71eaf29cd754f5cac20da0d08f", + "reference": "b2a23fa9a6565d71eaf29cd754f5cac20da0d08f", "shasum": "" }, "require": { @@ -4704,7 +4704,7 @@ "issues": "https://github.com/monarc-project/zm-client/issues", "source": "https://github.com/monarc-project/zm-client/tree/v2.10.3" }, - "time": "2021-05-10T15:46:56+00:00" + "time": "2021-05-12T09:58:17+00:00" }, { "name": "monarc/phpword", diff --git a/public/index.php b/public/index.php index 8657906..75d260b 100644 --- a/public/index.php +++ b/public/index.php @@ -31,4 +31,7 @@ if (file_exists('config/development.config.php')) { $appConfig = Laminas\Stdlib\ArrayUtils::merge($appConfig, include 'config/development.config.php'); } +ini_set('display_errors', 1); +error_reporting(E_ALL); + Application::init($appConfig)->run(); diff --git a/scripts/update-all.sh b/scripts/update-all.sh index 67bec2c..fe2b4be 100755 --- a/scripts/update-all.sh +++ b/scripts/update-all.sh @@ -34,8 +34,8 @@ checkout_to_latest_tag() { pushd $1 git fetch --tags -f tag=$(git describe --tags) - git checkout $tag - #git pull origin $tag + git checkout $tag -b $tag + git pull origin $tag popd fi } diff --git a/tests/Unit/Validator/FieldValidator/AnrExistenceValidatorTest.php b/tests/Unit/Validator/FieldValidator/AnrExistenceValidatorTest.php new file mode 100644 index 0000000..d5e93e1 --- /dev/null +++ b/tests/Unit/Validator/FieldValidator/AnrExistenceValidatorTest.php @@ -0,0 +1,37 @@ +anrTable = $this->createMock(AnrTable::class); + $this->anrExistenceValidator = new AnrExistenceValidator([ + 'anrTable' => $this->anrTable, + ]); + } + + public function testItCanValidateAnrsIdsListPassedAsArray() + { + $this->anrTable->method('findByIds'); + } + + public function testItCanValidateAnrsIdsListPassedAsArrayOfArraysAndAnrKey() + { + $this->anrTable->method('findByIds'); + } +}