mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Add Faker to Fixtures
This commit is contained in:
parent
90d2856581
commit
1951722fdb
|
|
@ -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);
|
||||
Loading…
Reference in New Issue
Block a user