10 use Magento\Theme\Model\ResourceModel\Theme\CollectionFactory as ThemeCollectionFactory;
25 private $themeCollectionFactoryMock;
30 private $themeCollectionMock;
34 $this->themeCollectionMock = $this->createMock(ThemeCollection::class);
35 $this->themeCollectionFactoryMock = $this->createPartialMock(ThemeCollectionFactory::class, [
'create']);
37 $this->themeCollectionFactoryMock
46 $this->themeCollectionFactoryMock->expects($this->once())
48 ->willReturn($this->themeCollectionMock);
50 $this->themeCollectionMock->expects($this->once())->method(
'loadRegisteredThemes')->willReturnSelf();
51 $this->themeCollectionMock->expects($this->once())->method(
'toOptionHash')->willReturn($expectedResult);
53 $this->assertEquals($expectedResult, $this->model->toOptionArray());