QuickBrownFox Codeception Helper
Codeception Helper for QuickBrownFox.
Installation
composer require ippey/quickbrownfox-codeception-helper
Configuration
For example.
modules:
enabled: [\Helper\QuickBrownFox]
config:
\Helper\QuickBrownFox:
dsn: 'mysql:host=localhost;dbname=test'
user: 'user'
password: 'password'
Usage
// Using Helper
$this->>tester->setFixtures('table', [
[
'id' => 1,
'name' => 'my name',
'gender' => 'male',
],
]);
// Using FixtureSetupSession
$this->tester->newFixtureSession();
$session = $this->tester->getFixtureSession();
$session->into('table')->load([
[
'id' => 1,
'name' => 'my name',
'gender' => 'male',
],
]);
// If you want to reset data, use resetFixtureSession()
$this->>tester->resetFixtureSession();
more details, See QuickBrownFox Documentation.
License
MIT License