Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ReviewActionsTest.php
Go to the documentation of this file.
1 <?php
7 
10 
15 {
19  protected function getModel()
20  {
21  return $this->objectManager->getObject(ReviewActions::class, [
22  'context' => $this->contextMock,
23  'uiComponentFactory' => $this->uiComponentFactoryMock,
24  'components' => [],
25  'data' => [],
26  ]);
27  }
28 
30  {
31  $this->assertSame([], $this->getModel()->prepareDataSource([]));
32  }
33 
34  public function testPrepareDataSource()
35  {
36  $this->assertArrayHasKey('data', $this->getModel()->prepareDataSource(['data' => ['items' => []]]));
37  }
38 }