Answer the question
In order to leave comments, you need to log in
How to fix error when executing Codeception tests with Yii2 module?
There is a Codeception test. Without Yii2 module included - no errors.
And if the Yii2 module is included in unite.suite.yml:
class_name: UnitTester
modules:
enabled:
- Asserts
- \Helper\Unit
- Yii2:
configFile: 'tests/config/unit.php'
part: fixtures
namespace mobile\tests\unit;
class CheckoutTest extends \yii\codeception\TestCase
{
public function testCartcheck()
{
$i = 80;
expect('equal 80', $i)->equals(80);
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question