mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-03 18:12:40 +00:00
Added missing calls to setUp & tearDown in tests
This commit is contained in:
parent
4590b7d553
commit
1cac1846a3
17 changed files with 26 additions and 0 deletions
|
@ -34,6 +34,7 @@ class DebugTransportTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
public function setUp() {
|
||||
parent::setUp();
|
||||
$this->DebugTransport = new DebugTransport();
|
||||
}
|
||||
|
||||
|
|
|
@ -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'));
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue