Source of file Tests_Log.php
Size: 0,703 Bytes - Last Modified: 2021-12-23T10:29:02+00:00
/var/www/docs.ssmods.com/process/src/code/thirdparty/postmark/Tests/Tests_Log.php
1234567891011121314151617181920212223242526272829303132333435 | <?php require_once('simpletest/autorun.php'); require_once(dirname(__FILE__) . '/../Postmark.php'); /** * Only run from Adapter test suite */ class LogTests extends UnitTestCase { private $_mail; public function setUp() { $this->_mail = Mail_Postmark::compose() ->debug(Mail_Postmark::DEBUG_RETURN) ->to('john@smith.com', 'John Smith') ->subject('The subject') ->messagePlain('Test message'); } public function tearDown() { unset($this->_mail); } public function testBase() { $debugData = $this->_mail ->send(); $this->assertEqual($debugData['json'], json_encode(Mail_Postmark_Adapter::$latestLogEntry['messageData'])); } } |