In Advance Template, trying to run a simple functional test, but I got DB Exception
Here is the test code
# AboutCept.php #
<?php
use tests\codeception\frontend\FunctionalTester;
use tests\codeception\frontend\_pages\AboutPage;
/* @var $scenario Codeception\Scenario */
$I = new FunctionalTester($scenario);
$I->wantTo('ensure that about works');
AboutPage::openBy($I);
$I->see('About', 'h1');
And here is my codecept command
codecept run functional AboutCept
And this is the output
SQLSTATE[23000]: Integrity constraint violoation: 1451 Cannot delete or update a parent row: a foreign key constraint fails
(`codecept`.`city`, CONSTRAINT `FK_city_user` FOREIGN KEY (`created_by`) REFERENCES `user` (`id`)).
The SQL being executed was: DELETE FROM `user`
I dont understand where in the AboutCept that do the delete user ? So frustrated