From 831000b9263c1e11829fe0acf1769077f5205aab Mon Sep 17 00:00:00 2001
From: Luke Rodgers <lukerodgers90@gmail.com>
Date: Sun, 3 Dec 2017 17:54:36 +0000
Subject: [PATCH] Correctly assert table output

---
 .../Test/Unit/Console/Command/IndexerStatusCommandTest.php | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/app/code/Magento/Indexer/Test/Unit/Console/Command/IndexerStatusCommandTest.php b/app/code/Magento/Indexer/Test/Unit/Console/Command/IndexerStatusCommandTest.php
index 58a0a5b7507..27c18b1f935 100644
--- a/app/code/Magento/Indexer/Test/Unit/Console/Command/IndexerStatusCommandTest.php
+++ b/app/code/Magento/Indexer/Test/Unit/Console/Command/IndexerStatusCommandTest.php
@@ -108,9 +108,12 @@ class IndexerStatusCommandTest extends AbstractIndexerCommandCommonSetup
 
         $linesOutput = array_filter(explode(PHP_EOL, $commandTester->getDisplay()));
 
+        $spacer = '+----------------+------------------+-----------+-------------------------+---------------------+';
+
         $this->assertCount(8, $linesOutput, 'There should be 8 lines output. 3 Spacers, 1 header, 4 content.');
-        $this->assertEquals($linesOutput[0], $linesOutput[2], "Lines 0, 2, 7 should be spacer lines");
-        $this->assertEquals($linesOutput[2], $linesOutput[7], "Lines 0, 2, 6 should be spacer lines");
+        $this->assertEquals($linesOutput[0], $spacer, "Lines 0, 2, 7 should be spacer lines");
+        $this->assertEquals($linesOutput[2], $spacer, "Lines 0, 2, 7 should be spacer lines");
+        $this->assertEquals($linesOutput[7], $spacer, "Lines 0, 2, 7 should be spacer lines");
 
         $headerValues = array_values(array_filter(explode('|', $linesOutput[1])));
         $this->assertEquals('Title', trim($headerValues[0]));
-- 
GitLab