File: D:/HostingSpaces/SBogers10/shop.komma.nl/database/seeds/DatabaseSeeder.php
<?php
use App\seeds\CommonGroupBehaviours;
use App\Seeds\CommonShopPages;
use App\seeds\CommonCoupons;
use App\Seeds\Discounts;
use App\seeds\SampleOrders;
use App\seeds\CommonProperties;
use App\seeds\TestCategories;
use App\seeds\TestMacBookGroupAndProducts;
use App\seeds\TestProducts;
use App\seeds\TestShippingCosts;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Config;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds. Needed for unit and end to end (Cypress) testing.
* NOT for showcasing. For that you use the CompleteDatabaseSeeder like this: php artisan db:seed --class=CompleteDatabaseSeeder.
*
* @return void
*/
public function run()
{
$this->call(UserTableSeeder::class);
//Needed for both unit and cypress tests
if(Config::get('app.multipleSites') == false) {
$this->call(CommonPagesSingleSite::class);
} else {
$this->call(TestPagesMultipleSites::class);
}
$this->call(TestShippingCosts::class);
//Needed for cypress
$this->call(CommonGroupBehaviours::class);
$this->call(CommonShopPages::class);
$this->call(CommonCoupons::class);
$this->call(TestCategories::class); //TODO modify cypress test
$this->call(TestProducts::class); //TODO Modify cypress test
$this->call(CommonProperties::class);
$this->call(SampleOrders::class); //Depends on sample products and productGroups
//NEEDED FOR UNIT TESTS
$this->call(CommonCorrectRoutesForWildcardModelsSeeder::class);
$this->call(TestMacBookGroupAndProducts::class);
$this->call(Discounts::class);
}
}