ippey / quickbrownfox-codeception-helper
Codeception helper for QuickBrownFox
Installs: 34
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Type:codeception-helper
Requires
- codeception/codeception: ^2.2
- doctrine/dbal: ^2.5
- lapaz/quick-brown-fox: ^0.1.0
Requires (Dev)
- phpunit/phpunit: ^5.7.20 || ^6.0 || ^7.0
This package is auto-updated.
Last update: 2024-11-20 20:07:18 UTC
README
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