Skip to content

Commit 3a1adef

Browse files
committed
move tests folder
1 parent 11f1107 commit 3a1adef

File tree

51 files changed

+7460
-7453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+7460
-7453
lines changed

src/Darryldecode/Backend/BackendServiceProvider.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ public function boot()
2727

2828
$this->publishes([
2929
__DIR__.'/Database/Migrations' => database_path('migrations'),
30+
__DIR__.'/Database/Seeders' => database_path('seeds'),
3031
], 'migrations');
32+
33+
$this->publishes([
34+
__DIR__.'/Tests' => base_path('tests'),
35+
], 'tests');
3136
}
3237

3338
/**

src/Darryldecode/Backend/Database/Seeders/BackendSeeder.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace Darryldecode\Backend\Database\Seeders;
1+
<?php
22

33
use Darryldecode\Backend\Components\ContentBuilder\Models\ContentType;
44
use Illuminate\Database\Seeder;
@@ -19,6 +19,8 @@ public function run()
1919
$this->seedUser();
2020
$this->seedDummyUsers();
2121
$this->seedDummyContentTypes();
22+
23+
Model::reguard();
2224
}
2325

2426
protected function seedUser()
@@ -63,11 +65,11 @@ protected function seedDummyUsers()
6365
protected function seedDummyContentTypes()
6466
{
6567
ContentType::create(array(
66-
'type' => 'Blog',
68+
'type' => 'blog',
6769
'enable_revisions' => true
6870
));
6971
ContentType::create(array(
70-
'type' => 'Events',
72+
'type' => 'events',
7173
'enable_revisions' => true
7274
));
7375
}

0 commit comments

Comments
 (0)