Skip to content

Commit

Permalink
Switch expected and result in test
Browse files Browse the repository at this point in the history
  • Loading branch information
maratth committed Dec 1, 2017
1 parent 3d47357 commit a006420
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/TestCase/Mailer/EmailTest.php
Expand Up @@ -2506,14 +2506,16 @@ public function testHeaderCharset()
public function testTransferEncoding()
{
// Test new transfer encoding
$this->Email->setTransferEncoding('quoted-printable');
$this->assertSame($this->Email->getTransferEncoding(), 'quoted-printable');
$this->assertSame($this->Email->getContentTransferEncoding(), 'quoted-printable');
$expected = 'quoted-printable';
$this->Email->setTransferEncoding($expected);
$this->assertSame($expected, $this->Email->getTransferEncoding());
$this->assertSame($expected, $this->Email->getContentTransferEncoding());

// Test default charset/encoding : utf8/8bit
$expected = '8bit';
$this->Email->reset();
$this->assertNull($this->Email->getTransferEncoding());
$this->assertSame($this->Email->getContentTransferEncoding(), '8bit');
$this->assertSame($expected, $this->Email->getContentTransferEncoding());
}

/**
Expand Down

0 comments on commit a006420

Please sign in to comment.