Add Faker to Fixtures

This commit is contained in:
Flavio Copes 2016-01-06 17:30:53 +01:00
parent 90d2856581
commit 1951722fdb

View File

@ -1,10 +1,10 @@
<?php
// This is global bootstrap for autoloading
namespace Grav;
use Codeception\Util\Fixtures;
use Faker\Factory;
// Ensure vendor libraries exist
$autoload = __DIR__ . '/../vendor/autoload.php';
@ -37,4 +37,8 @@ $grav = Grav::instance(
'loader' => $loader
)
);
Fixtures::add('grav', $grav);
$fake = Factory::create();
Fixtures::add('grav', $grav);
Fixtures::add('fake', $fake);