From 9f5a4ddf95ba8341ec4949e9a02ceee726a5c014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 2 Feb 2020 19:58:55 +0100 Subject: [PATCH] Fixed exception on log view. Added availability test for log view. --- src/Entity/LogSystem/ElementCreatedLogEntry.php | 4 ++-- tests/ApplicationAvailabilityFunctionalTest.php | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Entity/LogSystem/ElementCreatedLogEntry.php b/src/Entity/LogSystem/ElementCreatedLogEntry.php index f27b73e1..a02e6653 100644 --- a/src/Entity/LogSystem/ElementCreatedLogEntry.php +++ b/src/Entity/LogSystem/ElementCreatedLogEntry.php @@ -36,9 +36,9 @@ class ElementCreatedLogEntry extends AbstractLogEntry /** * Gets the instock when the part was created. * - * @return int|null + * @return string|null */ - public function getCreationInstockValue(): ?int + public function getCreationInstockValue(): ?string { return $this->extra['i'] ?? null; } diff --git a/tests/ApplicationAvailabilityFunctionalTest.php b/tests/ApplicationAvailabilityFunctionalTest.php index 6d61a9f6..adfcec28 100644 --- a/tests/ApplicationAvailabilityFunctionalTest.php +++ b/tests/ApplicationAvailabilityFunctionalTest.php @@ -89,6 +89,8 @@ class ApplicationAvailabilityFunctionalTest extends WebTestCase //yield ['/tree/device/1']; yield ['/tree/devices']; + yield ['/log/']; + //Typeahead yield ['/typeahead/builtInResources/search/DIP8']; yield ['/typeahead/tags/search/test'];