Add some test data for long url bug
This commit is contained in:
parent
e3ee803384
commit
09d0f9b71b
2 changed files with 18 additions and 2 deletions
|
@ -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()]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue