Esempio n. 1
0
 public function testGetTemplate()
 {
     $template = $this->getMockBuilder('\\Magento\\Newsletter\\Model\\Template')->disableOriginalConstructor()->getMock();
     $this->queue->setTemplateId(2);
     $this->templateFactory->expects($this->once())->method('create')->willReturn($template);
     $template->expects($this->once())->method('load')->with(2)->willReturnSelf();
     $this->assertEquals($template, $this->queue->getTemplate());
 }