Not Seeding Test Database

Posted 8 months ago by xtremer360

I'm trying to figure out why when I run make command it doesn't seed my testing database because when my test gets to the method I"m testing it says there are no roles in the database.

<?php

namespace Tests;

use Illuminate\Foundation\Testing\DatabaseTransactions;

class IntegrationTestCase extends TestCase
{
    use DatabaseTransactions;
}

Makefile

build:
    php artisan migrate:refresh --env="testing"
    php artisan db:seed --class="RolesTableSeeder" --env="testing"
    phpunit
APP_ENV=testing
APP_KEY=base64:zH6ySDqMKvAtbBwTFiKDK07/3cQoPOSGhrcEFM2HcmE=
BCRYPT_ROUNDS=4
CACHE_DRIVER=array
SESSION_DRIVER=array
QUEUE_CONNECTION=sync
MAIL_DRIVER=array
DB_HOST=127.0.0.1
DB_PORT=33060
DB_CONNECTION=mysql
DB_DATABASE=ets_laravel_testing
DB_USERNAME=homestead
DB_PASSWORD=secret

Please sign in or create an account to participate in this conversation.