Skip to content
Permalink
Browse files

Fix tests

  • Loading branch information...
dereuromark committed Sep 24, 2014
1 parent af7916b commit fce16189d52359cff15dcba4f20e43b35f897906
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/Cake/Test/Case/Network/Email/CakeEmailTest.php
@@ -1757,12 +1757,12 @@ public function testReset() {
$this->CakeEmail->to('cake@cakephp.org');
$this->CakeEmail->theme('TestTheme');
$this->CakeEmail->emailPattern('/.+@.+\..+/i');
$this->assertSame($this->CakeEmail->to(), array('cake@cakephp.org' => 'cake@cakephp.org'));
$this->assertSame(array('cake@cakephp.org' => 'cake@cakephp.org'), $this->CakeEmail->to());
$this->CakeEmail->reset();
$this->assertSame($this->CakeEmail->to(), array());
$this->assertSame(null, $this->CakeEmail->theme());
$this->assertSame(null, $this->CakeEmail->emailPattern());
$this->assertSame(array(), $this->CakeEmail->to());
$this->assertNull($this->CakeEmail->theme());
$this->assertSame(CakeEmail::EMAIL_PATTERN, $this->CakeEmail->emailPattern());
}
/**
@@ -1774,8 +1774,8 @@ public function testResetWithCharset() {
$this->CakeEmail->charset = 'ISO-2022-JP';
$this->CakeEmail->reset();
$this->assertSame($this->CakeEmail->charset, 'utf-8', $this->CakeEmail->charset);
$this->assertSame($this->CakeEmail->headerCharset, null, $this->CakeEmail->headerCharset);
$this->assertSame('utf-8', $this->CakeEmail->charset, $this->CakeEmail->charset);
$this->assertNull($this->CakeEmail->headerCharset, $this->CakeEmail->headerCharset);
}
/**

0 comments on commit fce1618

Please sign in to comment.
You can’t perform that action at this time.