Skip to content

Commit

Permalink
Add regression tests for #13901
Browse files Browse the repository at this point in the history
  • Loading branch information
rombert committed Mar 3, 2012
1 parent 16c85ff commit 9a0edf6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/soap/LoginTest.php
Expand Up @@ -76,6 +76,33 @@ public function testFilterGetIssuesLoginFailed() {
}
}

public function testLoginWithNullPasswordIsRejected() {
try {
$this->client->mc_enum_status( $this->userName, null);
$this->fail( "Should have failed." );
} catch ( SoapFault $e) {
$this->assertIsLoginFailure( $e );
}
}

public function testLoginWithEmptyPasswordIsRejected() {
try {
$this->client->mc_enum_status( $this->userName, '');
$this->fail( "Should have failed." );
} catch ( SoapFault $e) {
$this->assertIsLoginFailure( $e );
}
}

public function testLoginWithIncorrectPasswordIsRejected() {
try {
$this->client->mc_enum_status( $this->userName, "This really should be incorrect");
$this->fail( "Should have failed." );
} catch ( SoapFault $e) {
$this->assertIsLoginFailure( $e );
}
}

/**
* @param $e SoapFault
* @return void
Expand Down

0 comments on commit 9a0edf6

Please sign in to comment.