From ae9dff7736e6fcde030278d44ed54a696d35e581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20R?= Date: Thu, 20 Dec 2018 21:10:59 +0100 Subject: [PATCH] [Tests] Add Persistence\Cache coverage for load content w/o version number --- eZ/Publish/Core/Persistence/Cache/Tests/ContentHandlerTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eZ/Publish/Core/Persistence/Cache/Tests/ContentHandlerTest.php b/eZ/Publish/Core/Persistence/Cache/Tests/ContentHandlerTest.php index 0ea02d2cbca..1cf39801569 100644 --- a/eZ/Publish/Core/Persistence/Cache/Tests/ContentHandlerTest.php +++ b/eZ/Publish/Core/Persistence/Cache/Tests/ContentHandlerTest.php @@ -73,6 +73,8 @@ public function providerForCachedLoadMethods(): array return [ ['load', [2, 1], 'ez-content-2-1-' . ContentHandler::ALL_TRANSLATIONS_KEY, $content], ['load', [2, 1, ['eng-GB', 'eng-US']], 'ez-content-2-1-eng-GB|eng-US', $content], + ['load', [2], 'ez-content-2-' . ContentHandler::ALL_TRANSLATIONS_KEY, $content], + ['load', [2, null, ['eng-GB', 'eng-US']], 'ez-content-2-eng-GB|eng-US', $content], ['loadContentList', [[2]], 'ez-content-2-' . ContentHandler::ALL_TRANSLATIONS_KEY, [2 => $content], true], ['loadContentList', [[5], ['eng-GB', 'eng-US']], 'ez-content-5-eng-GB|eng-US', [5 => $content], true], ['loadContentInfo', [2], 'ez-content-info-2', $info],