public function testGetWidgetTemplatesNoTemplate() { $widget = ['@' => ['type' => 'Magento\\Cms\\Block\\Widget\\Page\\Link', 'module' => 'Magento_Cms'], 'name' => 'CMS Page Link', 'description' => 'Link to a CMS Page', 'is_email_compatible' => 'true', 'placeholder_image' => 'Magento_Cms::images/widget_page_link.png', 'parameters' => []]; $this->_widgetModelMock->expects($this->once())->method('getWidgetByClassType')->will($this->returnValue($widget)); $this->_viewFileSystemMock->expects($this->once())->method('getFilename')->will($this->returnValue('')); $expectedTemplates = []; $this->assertEquals($expectedTemplates, $this->_model->getWidgetTemplates()); }