Permalink
Browse files

Added test for supported formats

  • Loading branch information...
No3x committed Oct 4, 2018
1 parent 0f029be commit 106a964735d0a440d485a4fdb4d02ecc46e2d24d
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/phpunit/unit/WPML_MailRenderer_Test.php
@@ -61,6 +61,10 @@ public function test_print_mail_json() {
$this->mailServiceMock->mockery_verify();
}
public function test_supported_formats() {
$this->assertEquals(['raw', 'html', 'json'], $this->mailRenderer->getSupportedFormats());
}
public function test_print_mail_json_fallback_to_raw() {
$this->mailServiceMock = Mockery::mock('No3x\WPML\Model\IMailService');

0 comments on commit 106a964

Please sign in to comment.