ippey/quickbrownfox-codeception-helper

Codeception helper for QuickBrownFox

0.2.2 2018-07-11 01:20 UTC

This package is auto-updated.

Last update: 2024-04-20 18:50:37 UTC


README

Codeception Helper for QuickBrownFox.

CircleCI

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