<?php

namespace OpenDominion\Tests\Http;

use CoreDataSeeder;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use OpenDominion\Tests\AbstractHttpTestCase;

class HomeTest extends AbstractHttpTestCase
{
    use DatabaseMigrations;

    public function testIndex()
    {
        $this->get('/')
            ->assertStatus(200);
    }

    public function testRedirectLoggedUserWithoutSelectedDominionToDashboard()
    {
        $user = $this->createAndImpersonateUser();

        $this->actingAs($user)
            ->get('/')
            ->assertRedirect('/dashboard');
    }

    public function testRedirectLoggedUserWithSelectedDominionToStatus()
    {
        $this->seed(CoreDataSeeder::class);
        $user = $this->createAndImpersonateUser();
        $round = $this->createRound();
        $this->createAndSelectDominion($user, $round);

        $this->actingAs($user)
            ->get('/')
            ->assertRedirect('/dominion/status');
    }
}

<?php

namespace OpenDominion\Tests\Http;

use CoreDataSeeder;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use OpenDominion\Tests\AbstractHttpTestCase;

class HomeTest extends AbstractHttpTestCase
{
    use DatabaseMigrations;

    public function testIndex()
    {
        $this->get('/')
            ->assertStatus(200);
    }

    public function testRedirectLoggedWithoutSelectedDominionToDashboard()
    {
        $user = $this->createAndImpersonateUser();

        $this->actingAs($user)
            ->get('/')
            ->assertRedirect('/dashboard');
    }

    public function testRedirectLoggedWithSelectedDominionToStatus()
    {
        $this->seed(CoreDataSeeder::class);
        $user = $this->createAndImpersonateUser();
        $round = $this->createRound();
        $this->createAndSelectDominion($user, $round);

        $this->actingAs($user)
            ->get('/')
            ->assertRedirect('/dominion/status');
    }
}

--- 
+++ 
@@ -16,7 +16,7 @@
             ->assertStatus(200);
     }
 
-    public function testRedirectLoggedWithoutSelectedDominionToDashboard()
+    public function testRedirectLoggedUserWithoutSelectedDominionToDashboard()
     {
         $user = $this->createAndImpersonateUser();
 
@@ -25,7 +25,7 @@
             ->assertRedirect('/dashboard');
     }
 
-    public function testRedirectLoggedWithSelectedDominionToStatus()
+    public function testRedirectLoggedUserWithSelectedDominionToStatus()
     {
         $this->seed(CoreDataSeeder::class);
         $user = $this->createAndImpersonateUser();
Refactor home test method names
