forked from yiisoft/yii2-app-basic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to PHP 7.4 and codeception/verify 2.2 (yiisoft#260)
Co-authored-by: Luke English <[email protected]>
- Loading branch information
1 parent
60d89fc
commit 94bfe89
Showing
8 changed files
with
122 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,11 +21,6 @@ jobs: | |
- windows-latest | ||
|
||
php: | ||
- "5.6" | ||
- "7.0" | ||
- "7.1" | ||
- "7.2" | ||
- "7.3" | ||
- "7.4" | ||
- "8.0" | ||
- "8.1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,18 +24,18 @@ public function testEmailIsSentOnContact() | |
'verifyCode' => 'testme', | ||
]; | ||
|
||
expect_that($model->contact('[email protected]')); | ||
verify($model->contact('[email protected]'))->notEmpty(); | ||
|
||
// using Yii2 module actions to check email was sent | ||
$this->tester->seeEmailIsSent(); | ||
|
||
/** @var MessageInterface $emailMessage */ | ||
$emailMessage = $this->tester->grabLastSentEmail(); | ||
expect('valid email is sent', $emailMessage)->isInstanceOf('yii\mail\MessageInterface'); | ||
expect($emailMessage->getTo())->hasKey('[email protected]'); | ||
expect($emailMessage->getFrom())->hasKey('[email protected]'); | ||
expect($emailMessage->getReplyTo())->hasKey('[email protected]'); | ||
expect($emailMessage->getSubject())->equals('very important letter subject'); | ||
expect($emailMessage->toString())->stringContainsString('body of current message'); | ||
verify($emailMessage)->instanceOf('yii\mail\MessageInterface'); | ||
verify($emailMessage->getTo())->arrayHasKey('[email protected]'); | ||
verify($emailMessage->getFrom())->arrayHasKey('[email protected]'); | ||
verify($emailMessage->getReplyTo())->arrayHasKey('[email protected]'); | ||
verify($emailMessage->getSubject())->equals('very important letter subject'); | ||
verify($emailMessage->toString())->stringContainsString('body of current message'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.