From f6d094a6e4a5244e3d968664206aa0fcfa9a3b8c Mon Sep 17 00:00:00 2001 From: Christoph Reiter <reiter.christoph@gmail.com> Date: Wed, 2 Feb 2022 16:57:06 +0100 Subject: [PATCH] Update dbp/relay-base-person-bundle Some setters got stricter and no longer allow setting null, so fix the tests. --- composer.lock | 17 +++++++++-------- tests/PersonTest.php | 4 ++++ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/composer.lock b/composer.lock index 81b07f7..a873646 100644 --- a/composer.lock +++ b/composer.lock @@ -345,19 +345,19 @@ }, { "name": "dbp/relay-base-person-bundle", - "version": "v0.1.5", + "version": "v0.1.6", "source": { "type": "git", "url": "https://gitlab.tugraz.at/dbp/relay/dbp-relay-base-person-bundle", - "reference": "e9590b4072a0f6c6de22018deaa404e9f78c56eb" + "reference": "aaae7b2cb9e6fbb22c116b777fde800312ad10ea" }, "require": { "api-platform/core": "^2.6.3", - "dbp/relay-core-bundle": "^0.1.11", + "dbp/relay-core-bundle": "^0.1.25", "ext-json": "*", "guzzlehttp/guzzle": "^7.0", "nelmio/cors-bundle": "^2.1.0", - "php": "^7.3", + "php": ">=7.3", "phpdocumentor/reflection-docblock": "^3.0 || ^4.0 || ^5.0", "symfony/config": "^5.2", "symfony/expression-language": "^5.2", @@ -371,8 +371,9 @@ }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.0", - "phpstan/phpstan": "^0.12.33", - "phpstan/phpstan-phpunit": "^0.12.13", + "phpstan/phpstan": "^1.0.0", + "phpstan/phpstan-phpunit": "^1.0.0", + "phpunit/phpunit": "^9", "symfony/browser-kit": "^5.2", "symfony/http-client": "^5.2", "symfony/monolog-bundle": "^3.7", @@ -389,7 +390,7 @@ "license": [ "AGPL-3.0-or-later" ], - "time": "2021-10-27T09:05:38+00:00" + "time": "2022-02-02T15:46:45+00:00" }, { "name": "dbp/relay-core-bundle", @@ -9606,5 +9607,5 @@ "platform-overrides": { "php": "7.3" }, - "plugin-api-version": "2.2.0" + "plugin-api-version": "2.1.0" } diff --git a/tests/PersonTest.php b/tests/PersonTest.php index 31ed299..9511a1c 100644 --- a/tests/PersonTest.php +++ b/tests/PersonTest.php @@ -87,6 +87,8 @@ class PersonTest extends ApiTestCase $user = new AdldapUser([ 'cn' => ['foobar'], 'dateofbirth' => [$variant], + 'givenName' => ['givenName'], + 'sn' => ['familyName'], ], $this->newBuilder()); $person = $this->api->personFromUserItem($user, false); @@ -110,6 +112,8 @@ class PersonTest extends ApiTestCase { $user = new AdldapUser([ 'cn' => ['foobar'], + 'givenName' => ['givenName'], + 'sn' => ['familyName'], ], $this->newBuilder()); $person = $this->api->personFromUserItem($user, false); -- GitLab