Add some test data for long url bug

This commit is contained in:
Jonny Barnes 2020-03-08 14:16:41 +00:00
parent e3ee803384
commit 09d0f9b71b
2 changed files with 18 additions and 2 deletions

View file

@ -14,8 +14,6 @@ class NotesTableSeeder extends Seeder
*/
public function run()
{
//factory(Note::class, 10)->create();
$now = Carbon::now()->subDays(rand(2, 5));
$noteTwitterReply = Note::create([
'note' => 'What does this even mean?',
@ -197,5 +195,15 @@ EOF;
DB::table('notes')
->where('id', $noteWithCode->id)
->update(['updated_at' => $now->toDateTimeString()]);
$now = Carbon::now();
$noteWithLongUrl = Note::create([
'note' => 'Best site: https://example.org/posts/some-really-long-slug-that-is-too-wide-on-mobile',
'created_at' => $now,
'client_id' => 'https://beta.indigenous.abode.pub/ios/'
]);
DB::table('notes')
->where('id', $noteWithLongUrl->id)
->update(['updated_at' => $now->toDateTimeString()]);
}
}