The dependency and script updates.

phpword_v0.18.1
Ruslan Baidan 2021-05-12 12:04:05 +02:00
parent 196e3f3601
commit bbe8495057
No known key found for this signature in database
GPG Key ID: 4B7724C136BF1D89
5 changed files with 47 additions and 7 deletions

View File

@ -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

8
composer.lock generated
View File

@ -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",

View File

@ -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();

View File

@ -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
}

View File

@ -0,0 +1,37 @@
<?php declare(strict_types=1);
namespace MonarcAppFo\Tests\Unit\Validator\FieldValidator;
use Monarc\FrontOffice\Model\Table\AnrTable;
use Monarc\FrontOffice\Validator\FieldValidator\AnrExistenceValidator;
use MonarcAppFo\Tests\Unit\AbstractUnitTestCase;
use PHPUnit\Framework\MockObject\MockObject;
class AnrExistenceValidatorTest extends AbstractUnitTestCase
{
/** @var AnrTable|MockObject */
private $anrTable;
/** @var AnrExistenceValidator */
private $anrExistenceValidator;
public function setUp(): void
{
parent::setUp();
$this->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');
}
}