eml = $this->make('e107Email'); } catch(Exception $e) { $this->assertTrue(false, "Couldn't load e107Email object"); } $this->eml->__construct(); } /* public function testAllSent() { } public function testProcessShortcodes() { } */ public function testArraySet() { $eml = array( 'subject' => "[URGENT EXAMPLE]", 'sender_email' => "noreply@test.com", 'sender_name' => "Test Person", 'replyto' => "", 'html' => true, 'priority' => 1, 'template' => 'default', 'body' => "This is the body text", 'cc' => '' ); $this->eml->arraySet($eml); $this->assertStringContainsString("noreply@test.com", $this->eml->From); $this->assertStringContainsString("Test Person", $this->eml->FromName); $this->assertStringContainsString("e107: [URGENT EXAMPLE] ", $this->eml->Subject); $this->assertStringContainsString("This is the body text", $this->eml->Body); $this->assertStringContainsString("
Website: | https://e107.org |
Github: | https://github.com/e107inc/ |