/** * Test case * * @depends testLoadTemplateLoadsValues */ public function testLoadSmartyTemplateLoadsValues() { $mail = new Enlight_Components_Mail('UTF-8'); $templateMock = $this->getSmartyMailMockObject(); $context = array('sConfig' => array('sSHOPNAME' => 'Shopware 3.5 Demo', 'sMAIL' => '*****@*****.**'), 'sShopURL' => 'http://demo.shopware.de'); $this->mail->getStringCompiler()->setContext($context); $result = $this->mail->loadValues($mail, $templateMock); $this->assertEquals('Ihr Bestellung bei Shopware 3.5 Demo', $result->getSubject()); $this->assertEquals('Shopware 3.5 Demo', $result->getFromName()); $this->assertEquals('*****@*****.**', $result->getFrom()); $this->assertEquals('Testbestellung bei Shopware 3.5 Demo', $result->getBodyText(true)); $this->assertEquals('Testbestellung HTML bei Shopware 3.5 Demo', $result->getBodyHtml(true)); }