From e4f0890d82368918b1e953fbb849c9cd08b7ff0a Mon Sep 17 00:00:00 2001
From: Illia Grybkov <igrybkov@magento.com>
Date: Wed, 28 Dec 2016 16:23:21 +0200
Subject: [PATCH] MAGETWO-58174: When catalog is being indexed it should index
 in place or leverage an index alias so store can still function during a long
 index run

  - Update unit test to match class design changes in a code
---
 .../Test/Unit/Model/Search/Indexer/IndexStructureTest.php | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/app/code/Magento/CatalogSearch/Test/Unit/Model/Search/Indexer/IndexStructureTest.php b/app/code/Magento/CatalogSearch/Test/Unit/Model/Search/Indexer/IndexStructureTest.php
index 3bb270e9906..8f4bb7736cd 100644
--- a/app/code/Magento/CatalogSearch/Test/Unit/Model/Search/Indexer/IndexStructureTest.php
+++ b/app/code/Magento/CatalogSearch/Test/Unit/Model/Search/Indexer/IndexStructureTest.php
@@ -48,9 +48,8 @@ class IndexStructureTest extends \PHPUnit_Framework_TestCase
             ->method('getConnection')
             ->willReturn($this->connection);
         $this->indexScopeResolver = $this->getMockBuilder(
-            \Magento\Framework\Indexer\ScopeResolver\IndexScopeResolver::class
+            \Magento\Framework\Search\Request\IndexScopeResolverInterface::class
         )->setMethods(['resolve'])
-            ->disableOriginalConstructor()
             ->getMock();
 
         $objectManager = new ObjectManager($this);
@@ -64,11 +63,6 @@ class IndexStructureTest extends \PHPUnit_Framework_TestCase
         );
     }
 
-    /**
-     * @param string $table
-     * @param array $dimensions
-     * @param bool $isTableExist
-     */
     public function testDelete()
     {
         $index = 'index_name';
-- 
GitLab