Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CrossSellDataProviderTest.php
Go to the documentation of this file.
1 <?php
7 
9 
14 {
18  protected function getModel()
19  {
20  return $this->objectManager->getObject(CrossSellDataProvider::class, [
21  'name' => 'testName',
22  'primaryFieldName' => 'testPrimaryFieldName',
23  'requestFieldName' => 'testRequestFieldName',
24  'collectionFactory' => $this->collectionFactoryMock,
25  'request' => $this->requestMock,
26  'productRepository' => $this->productRepositoryMock,
27  'productLinkRepository' => $this->productLinkRepositoryMock,
28  'addFieldStrategies' => [],
29  'addFilterStrategies' => [],
30  'meta' => [],
31  'data' => []
32  ]);
33  }
34 }