I work with Laravel 5.6, PHPUnit 7.1.1
Right now, all my tests work, I use in memory sqlite db, and everything is fine.
Now, I just execute
composer update
and now all my tests fail when executing first method of test, setUp():
Caused by
PDOException: SQLSTATE[HY000]: General error: 1 no such table: ken_users
/Users/julien/Documents/Projets/kendozone/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:77
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Database/Connection.php:452
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Database/Connection.php:657
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Database/Connection.php:459
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Database/Schema/Blueprint.php:88
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php:264
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php:149
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:223
/Users/julien/Documents/Projets/kendozone/database/migrations/2014_10_12_000000_create_users_table.php:58
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:359
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:366
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:177
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:146
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:95
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php:70
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:87
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:31
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Container/Container.php:564
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Console/Command.php:179
/Users/julien/Documents/Projets/kendozone/vendor/symfony/console/Command/Command.php:255
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Console/Command.php:166
/Users/julien/Documents/Projets/kendozone/vendor/symfony/console/Application.php:893
/Users/julien/Documents/Projets/kendozone/vendor/symfony/console/Application.php:262
/Users/julien/Documents/Projets/kendozone/vendor/symfony/console/Application.php:145
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Console/Application.php:89
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Console/Application.php:188
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:250
/Users/julien/Documents/Projets/kendozone/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:223
/Users/julien/Documents/Projets/kendozone/vendor/laravel/browser-kit-testing/src/TestCase.php:75
/Users/julien/Documents/Projets/kendozone/tests/functional/UserTest.php:25
I use BrowserKitTesting package, and did not redefined setUp() method.
I also tried to set all the plugin to version that make my test pass, but it doesn't work. In particular, I also tried not to update phpunit and setting it to the 'working' version, but with no success.
Any idea ?
Aucun commentaire:
Enregistrer un commentaire