diff --git a/core/modules/system/lib/Drupal/system/Tests/Theme/FunctionsTest.php b/core/modules/system/lib/Drupal/system/Tests/Theme/FunctionsTest.php
index ee4bb10..586e1eb 100644
--- a/core/modules/system/lib/Drupal/system/Tests/Theme/FunctionsTest.php
+++ b/core/modules/system/lib/Drupal/system/Tests/Theme/FunctionsTest.php
@@ -60,6 +60,14 @@ function testItemList() {
$expected = '
Some title
No items found.';
$this->assertThemeOutput('item_list', $variables, $expected, 'Empty %callback generates empty string with title.');
+ // Verify that empty text is not displayed when there are list items.
+ $variables = array();
+ $variables['title'] = 'Some title';
+ $variables['empty'] = 'No items found.';
+ $variables['items'] = array('Un', 'Deux', 'Trois');
+ $expected = '';
+ $this->assertThemeOutput('item_list', $variables, $expected, '%callback does not print empty text when there are list items.');
+
// Verify nested item lists.
$variables = array();
$variables['title'] = 'Some title';