Skip to content

Commit

Permalink
Rework on documentation.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Feb 12, 2017
1 parent bade1a4 commit 292ae4d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,16 +212,8 @@ $this->loadMigrationsFrom([
```

> Warning: `--realpath` support has been deprecated in favour of `ServiceProvider::loadMigrationsFrom()`.
### Using Model Factories

Testbench include `withFactories()` method to allow you to register custom model factory path for your test suite.

```php
$this->withFactories(__DIR__.'/factories');
```

#### Using Laravel User Migration
>
#### Using Laravel Migrations

By default Testbench doesn't execute the default Laravel migrations which include `users` and `password_resets` table. In order to run the migration just add the following command:

Expand All @@ -230,6 +222,14 @@ $this->loadLaravelMigrations([
'--database' => 'testbench',
]);
```

### Using Model Factories

Testbench include `withFactories()` method to allow you to register custom model factory path for your test suite.

```php
$this->withFactories(__DIR__.'/factories');
```

## Example

Expand Down

0 comments on commit 292ae4d

Please sign in to comment.