1.4 - Unit Testing Presentation Logic

This commit is contained in:
Adam Wathan
2016-11-02 14:54:34 -04:00
parent b49dcfabe3
commit 9e973974eb
4 changed files with 50 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
<?php
use Carbon\Carbon;
/*
|--------------------------------------------------------------------------
| Model Factories
@@ -22,3 +24,18 @@ $factory->define(App\User::class, function (Faker\Generator $faker) {
'remember_token' => str_random(10),
];
});
$factory->define(App\Concert::class, function (Faker\Generator $faker) {
return [
'title' => 'Example Band',
'subtitle' => 'with The Fake Openers',
'date' => Carbon::parse('+2 weeks'),
'ticket_price' => 2000,
'venue' => 'The Example Theatre',
'venue_address' => '123 Example Lane',
'city' => 'Fakeville',
'state' => 'ON',
'zip' => '90210',
'additional_information' => 'Some sample additional information.',
];
});