mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Test to smtp disconnect.
This commit is contained in:
parent
5018953407
commit
5f54946cf8
1 changed files with 10 additions and 0 deletions
|
@ -264,4 +264,14 @@ class StmpProtocolTest extends CakeTestCase {
|
|||
$this->SmtpTransport->sendData();
|
||||
}
|
||||
|
||||
/**
|
||||
* testQuit method
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testQuit() {
|
||||
$this->socket->expects($this->at(0))->method('write')->with("QUIT\r\n");
|
||||
$this->SmtpTransport->disconnect();
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue