Added missing calls to setUp & tearDown in tests

This commit is contained in:
Marc Würth 2013-07-29 01:22:52 +02:00
parent 4590b7d553
commit 1cac1846a3
17 changed files with 26 additions and 0 deletions

View file

@ -34,6 +34,7 @@ class DebugTransportTest extends CakeTestCase {
* @return void
*/
public function setUp() {
parent::setUp();
$this->DebugTransport = new DebugTransport();
}

View file

@ -34,6 +34,7 @@ class MailTransportTest extends CakeTestCase {
* @return void
*/
public function setUp() {
parent::setUp();
$this->MailTransport = $this->getMock('MailTransport', array('_mail'));
$this->MailTransport->config(array('additionalParameters' => '-f'));
}

View file

@ -82,6 +82,7 @@ class SmtpTransportTest extends CakeTestCase {
* @return void
*/
public function setUp() {
parent::setUp();
if (!class_exists('MockSocket')) {
$this->getMock('CakeSocket', array('read', 'write', 'connect', 'enableCrypto'), array(), 'MockSocket');
}