Upgrade to Codeception 4.0 (#218)
* Use modular Codeception 4.0 * Moved bootstrap setting to top level Because old location is deprecated See https://bit.ly/2YrRzVc * Use stringContainsString instead of contains Because using assertContains() with string haystacks is deprecated and will not be supported in PHPUnit 9. * Removed 5.4 and 5.5
This commit is contained in:
parent
7e643e7da5
commit
660ebb41df
@ -8,10 +8,6 @@ matrix:
|
||||
- php: "7.1"
|
||||
- php: "7.0"
|
||||
- php: "5.6"
|
||||
- php: "5.5"
|
||||
dist: trusty
|
||||
- php: "5.4"
|
||||
dist: trusty
|
||||
|
||||
# faster builds on new travis setup not using sudo
|
||||
sudo: false
|
||||
|
@ -1,11 +1,11 @@
|
||||
actor: Tester
|
||||
bootstrap: _bootstrap.php
|
||||
paths:
|
||||
tests: tests
|
||||
log: tests/_output
|
||||
data: tests/_data
|
||||
helpers: tests/_support
|
||||
settings:
|
||||
bootstrap: _bootstrap.php
|
||||
memory_limit: 1024M
|
||||
colors: true
|
||||
modules:
|
||||
|
@ -23,11 +23,13 @@
|
||||
"yiisoft/yii2-debug": "~2.1.0",
|
||||
"yiisoft/yii2-gii": "~2.1.0",
|
||||
"yiisoft/yii2-faker": "~2.0.0",
|
||||
|
||||
"codeception/base": "~2.3.0",
|
||||
"codeception/verify": "~0.4.0",
|
||||
"codeception/codeception": "4.0.x-dev | ^4.0",
|
||||
"codeception/verify": "~0.5.0 || ~1.1.0",
|
||||
"codeception/specify": "~0.4.6",
|
||||
"symfony/browser-kit": ">=2.7 <=4.2.4"
|
||||
"symfony/browser-kit": ">=2.7 <=4.2.4",
|
||||
"codeception/module-filesystem": "^1.0.0",
|
||||
"codeception/module-yii2": "^1.0.0",
|
||||
"codeception/module-asserts": "^1.0.0"
|
||||
},
|
||||
"config": {
|
||||
"process-timeout": 1800,
|
||||
|
@ -43,6 +43,6 @@ class ContactFormTest extends \Codeception\Test\Unit
|
||||
expect($emailMessage->getFrom())->hasKey('noreply@example.com');
|
||||
expect($emailMessage->getReplyTo())->hasKey('tester@example.com');
|
||||
expect($emailMessage->getSubject())->equals('very important letter subject');
|
||||
expect($emailMessage->toString())->contains('body of current message');
|
||||
expect($emailMessage->toString())->stringContainsString('body of current message');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user