You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use Faker in my fixtures to generate data for my tests, i tried your fixture example but when i try to run my test i get this error.
Fatal error: Declaration of Gourmet\Faker\TestSuite\Fixture\TestFixture::insert(Cake\Database\Connection $db) must be compatible with Cake\TestSuite\Fixture\TestFixture::insert(Cake\Datasource\ConnectionInterface $db) in C:\laragon\www\my_app_name\vendor\gourmet\faker\src\TestSuite\Fixture\TestFixture.php on line 11
Can you please help me find out what is missing.
My php version is : 7.3.5
My cakephp version : 3.7
fzaninotto/faker: 1.4.*
I am trying to use Faker in my fixtures to generate data for my tests, i tried your fixture example but when i try to run my test i get this error.
Fatal error: Declaration of Gourmet\Faker\TestSuite\Fixture\TestFixture::insert(Cake\Database\Connection $db) must be compatible with Cake\TestSuite\Fixture\TestFixture::insert(Cake\Datasource\ConnectionInterface $db) in C:\laragon\www\my_app_name\vendor\gourmet\faker\src\TestSuite\Fixture\TestFixture.php on line 11
Can you please help me find out what is missing.
My php version is : 7.3.5
My cakephp version : 3.7
fzaninotto/faker: 1.4.*
My PostsFixture
`<?php
namespace App\Test\Fixture;
use Gourmet\Faker\TestSuite\Fixture\TestFixture;
class PostsFixture extends TestFixture {
}`
The text was updated successfully, but these errors were encountered: