Skip to content

Commit

Permalink
MAGETWO-69666: Return array of pages as items instead of array of arr…
Browse files Browse the repository at this point in the history
…ays #9823

 - fixed unit tests
  • Loading branch information
Oleksii Korshenko committed Jun 9, 2017
1 parent 3aba379 commit 02172bd
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions app/code/Magento/Cms/Test/Unit/Model/PageRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,22 +261,8 @@ public function testGetList()
->willReturnSelf();
$this->pageSearchResult->expects($this->once())
->method('setItems')
->with(['someData'])
->with([$this->page])
->willReturnSelf();

$this->page->expects($this->once())
->method('getData')
->willReturn(['data']);

$this->dataHelper->expects($this->once())
->method('populateWithArray')
->with($this->pageData, ['data'], \Magento\Cms\Api\Data\PageInterface::class);

$this->dataObjectProcessor->expects($this->once())
->method('buildOutputDataArray')
->with($this->pageData, \Magento\Cms\Api\Data\PageInterface::class)
->willReturn('someData');

$this->assertEquals($this->pageSearchResult, $this->repository->getList($criteria));
}
}

0 comments on commit 02172bd

Please sign in to comment.