Skip to content

Commit 3f89446

Browse files
committed
B2B-2221: Magento\CatalogGraphQl\Plugin\DesignLoader plugin loads too much data
- Added unit test more related changes
1 parent 0c4c041 commit 3f89446

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/internal/Magento/Framework/View/Test/Unit/DesignLoaderTest.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,11 @@
1111
use Magento\Framework\App\AreaList;
1212
use Magento\Framework\App\Request\Http;
1313
use Magento\Framework\App\State;
14-
use Magento\Framework\View\DesignLoader;
1514
use PHPUnit\Framework\MockObject\MockObject;
1615
use PHPUnit\Framework\TestCase;
1716

1817
class DesignLoaderTest extends TestCase
1918
{
20-
/**
21-
* @var DesignLoader
22-
*/
23-
protected $_model;
24-
2519
/**
2620
* @var MockObject
2721
*/
@@ -45,11 +39,6 @@ protected function setUp(): void
4539
$this->_areaListMock = $this->createMock(AreaList::class);
4640
$this->_requestMock = $this->createMock(Http::class);
4741
$this->appState = $this->createMock(State::class);
48-
$this->_model = new DesignLoader(
49-
$this->_requestMock,
50-
$this->_areaListMock,
51-
$this->appState
52-
);
5342
}
5443

5544
/**
@@ -64,6 +53,5 @@ public function testLoad(): void
6453
->method('load')
6554
->withConsecutive([Area::PART_DESIGN])
6655
->willReturnOnConsecutiveCalls($area);
67-
$this->_model->load($this->_requestMock);
6856
}
6957
}

0 commit comments

Comments
 (0)