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:
|
script:
|
||||||
- php vendor/bin/phpunit --coverage-text
|
- 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
|
- php vendor/bin/security-checker security:check ./composer.lock --end-point=http://security.sensiolabs.org/check_lock
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use App\Article;
|
||||||
use Illuminate\Database\Seeder;
|
use Illuminate\Database\Seeder;
|
||||||
|
|
||||||
class ArticlesTableSeeder extends Seeder
|
class ArticlesTableSeeder extends Seeder
|
||||||
|
@ -11,13 +12,10 @@ class ArticlesTableSeeder extends Seeder
|
||||||
*/
|
*/
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
DB::table('articles')->insert([
|
Article::create([
|
||||||
'titleurl' => 'my-new-blog',
|
|
||||||
'title' => 'My New Blog',
|
'title' => 'My New Blog',
|
||||||
'main' => 'This is my new blog. It uses `Markdown`.',
|
'main' => 'This is *my* new blog. It uses `Markdown`.',
|
||||||
'published' => 1,
|
'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([
|
Contact::create([
|
||||||
'nick' => 'tantek',
|
'nick' => 'tantek',
|
||||||
'name' => 'Tanetk Çelik',
|
'name' => 'Tantek Çelik',
|
||||||
'homepage' => 'http://tantek.com',
|
'homepage' => 'http://tantek.com',
|
||||||
'twitter' => 't',
|
'twitter' => 't',
|
||||||
]);
|
]);
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use App\IndieWebUser;
|
||||||
use Illuminate\Database\Seeder;
|
use Illuminate\Database\Seeder;
|
||||||
|
|
||||||
class IndieWebUserTableSeeder extends Seeder
|
class IndieWebUserTableSeeder extends Seeder
|
||||||
|
@ -11,6 +12,6 @@ class IndieWebUserTableSeeder extends Seeder
|
||||||
*/
|
*/
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
App\IndieWebUser::create(['me' => config('app.url')]);
|
IndieWebUser::create(['me' => config('app.url')]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use App\WebMention;
|
||||||
use Illuminate\Database\Seeder;
|
use Illuminate\Database\Seeder;
|
||||||
|
|
||||||
class WebMentionsTableSeeder extends Seeder
|
class WebMentionsTableSeeder extends Seeder
|
||||||
|
@ -11,7 +12,7 @@ class WebMentionsTableSeeder extends Seeder
|
||||||
*/
|
*/
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
$webmention = App\WebMention::create([
|
$webmention = WebMention::create([
|
||||||
'source' => 'https://aaornpk.localhost/reply/1',
|
'source' => 'https://aaornpk.localhost/reply/1',
|
||||||
'target' => 'https://jonnybarnes.localhost/notes/D',
|
'target' => 'https://jonnybarnes.localhost/notes/D',
|
||||||
'commentable_id' => '13',
|
'commentable_id' => '13',
|
||||||
|
|
Loading…
Add table
Reference in a new issue