Skip to content
Permalink
Browse files

Removed testAuthNoAuth() as it was useless.

$this->any() could be changed to $this->never() and still work.
If using $this->once() it failed, as write() never was triggered.
  • Loading branch information...
kimegede committed Aug 25, 2014
1 parent 1a4eae3 commit 81e9e7d986b566d4da49ac6e8e52ac486d9486cf
Showing with 0 additions and 12 deletions.
  1. +0 −12 tests/TestCase/Network/Email/SmtpTransportTest.php
@@ -311,18 +311,6 @@ public function testAuthBadPassword() {
$this->SmtpTransport->auth();
}
/**
* testAuthNoAuth method
*
* @return void
*/
public function testAuthNoAuth() {
$this->socket->expects($this->any())->method('write')->with($this->logicalNot($this->stringContains('AUTH LOGIN')));
$this->SmtpTransport->config(array('username' => null, 'password' => null));
$this->SmtpTransport->auth();
}
/**
* testRcpt method
*

0 comments on commit 81e9e7d

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