Better db seeding for other models, remove dusk tests till 5.5 and better chrome headless testing support is released
This commit is contained in:
parent
20d71513f3
commit
323191d82c
5 changed files with 8 additions and 9 deletions
|
@ -60,7 +60,6 @@ before_script:
|
|||
|
||||
script:
|
||||
- php vendor/bin/phpunit --coverage-text
|
||||
- php artisan dusk
|
||||
- php vendor/bin/security-checker security:check ./composer.lock --end-point=http://security.sensiolabs.org/check_lock
|
||||
|
||||
after_script:
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
|
||||
use App\Article;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class ArticlesTableSeeder extends Seeder
|
||||
|
@ -11,13 +12,10 @@ class ArticlesTableSeeder extends Seeder
|
|||
*/
|
||||
public function run()
|
||||
{
|
||||
DB::table('articles')->insert([
|
||||
'titleurl' => 'my-new-blog',
|
||||
Article::create([
|
||||
'title' => 'My New Blog',
|
||||
'main' => 'This is my new blog. It uses `Markdown`.',
|
||||
'main' => 'This is *my* new blog. It uses `Markdown`.',
|
||||
'published' => 1,
|
||||
'created_at' => '2016-01-12 15:51:01',
|
||||
'updated_at' => '2016-01-12 15:51:01',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ class ContactsTableSeeder extends Seeder
|
|||
{
|
||||
Contact::create([
|
||||
'nick' => 'tantek',
|
||||
'name' => 'Tanetk Çelik',
|
||||
'name' => 'Tantek Çelik',
|
||||
'homepage' => 'http://tantek.com',
|
||||
'twitter' => 't',
|
||||
]);
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
|
||||
use App\IndieWebUser;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class IndieWebUserTableSeeder extends Seeder
|
||||
|
@ -11,6 +12,6 @@ class IndieWebUserTableSeeder extends Seeder
|
|||
*/
|
||||
public function run()
|
||||
{
|
||||
App\IndieWebUser::create(['me' => config('app.url')]);
|
||||
IndieWebUser::create(['me' => config('app.url')]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
|
||||
use App\WebMention;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class WebMentionsTableSeeder extends Seeder
|
||||
|
@ -11,7 +12,7 @@ class WebMentionsTableSeeder extends Seeder
|
|||
*/
|
||||
public function run()
|
||||
{
|
||||
$webmention = App\WebMention::create([
|
||||
$webmention = WebMention::create([
|
||||
'source' => 'https://aaornpk.localhost/reply/1',
|
||||
'target' => 'https://jonnybarnes.localhost/notes/D',
|
||||
'commentable_id' => '13',
|
||||
|
|
Loading…
Add table
Reference in a new issue