protected function runTest() { $this->prepareFormMethod->invoke($this->block); $form = $this->block->getForm(); foreach ($this->expectedFields as $key) { $this->assertNotNull($form->getElement($key)); } $this->assertGreaterThan(0, strpos($form->getElement('insert_variable')->getData('text'), 'Insert Variable')); }
/** * @covers \Magento\Email\Block\Adminhtml\Template\Edit\Form::getEmailTemplate */ public function testGetEmailTemplate() { $this->registryMock->expects($this->once())->method('registry')->with('current_email_template'); $this->form->getEmailTemplate(); }