PMCORE-2267 Unit test: Failed asserting that exception of type "Exception" is thrown.
This commit is contained in:
@@ -267,8 +267,9 @@ class GmailOAuthTest extends TestCase
|
||||
$result = $gmailOauth->sendTestMailWithPHPMailerOAuth();
|
||||
$this->assertTrue($result instanceof PHPMailerOAuth);
|
||||
|
||||
$this->markTestIncomplete('Please solve the error related to Exception');
|
||||
$this->expectException(Exception::class);
|
||||
$gmailOauth = new GmailOAuth();
|
||||
$gmailOauth->setFromAccount($faker->email);
|
||||
$gmailOauth->setSenderEmail("");
|
||||
$gmailOauth->setMailTo($faker->email);
|
||||
$gmailOauth->setSendTestMail(1);
|
||||
|
||||
Reference in New Issue
Block a user