Compare commits

...
3 Commits
Author SHA1 Message Date
paperbenni a2ed9a9838 add dev user sheed 2026-10-30 09:40:42 +01:00
paperbenni 937004a48c fix migration incompatibility 2026-10-30 09:40:22 +01:00
paperbenni bd6e311a73 correct stale test 2026-10-30 09:39:28 +01:00
3 changed files with 29 additions and 3 deletions
@@ -25,8 +25,9 @@ class CreateBookingsTable extends Migration
// The name of the person or company which the booking belongs to
$table->string('person_or_company');
// An additional note to the booking
$table->string('note')->nullable();
// An additional note to the booking. The real dataset contains
// notes longer than the 191-character default string length.
$table->text('note')->nullable();
$table->timestamps();
});
+25
View File
@@ -0,0 +1,25 @@
<?php
use Illuminate\Database\Seeder;
class DevUserSeeder extends Seeder
{
/**
* Create a local development login.
*
* Email: dev@pollux.local
* Password: password
*
* @return void
*/
public function run()
{
App\User::updateOrCreate(
['email' => 'dev@pollux.local'],
[
'name' => 'Dev User',
'password' => bcrypt('password'),
]
);
}
}
+1 -1
View File
@@ -16,6 +16,6 @@ class ExampleTest extends TestCase
{
$response = $this->get('/');
$response->assertStatus(200);
$response->assertRedirect('/bookings');
}
}