<?php

use App\Models\Business;
use Illuminate\Foundation\Testing\DatabaseTransactions;

class GuestBusinessControllerTest extends TestCase
{
    use DatabaseTransactions;
    use CreateBusiness;

    ///////////
    // TESTS //
    ///////////

    /** @test */
    public function it_presents_the_business_home()
    {
        // Given I am a guest user
        $business = $this->createBusiness();

        // And I visit the homepage
        $this->visit(route('guest.business.home', $business));

        // Then I should see the business home
        $this->see($business->name)
             ->see(substr($business->description, 0, 15));
    }
}

<?php

use App\Models\Business;
use Illuminate\Foundation\Testing\DatabaseTransactions;

class GuestBusinessControllerTest extends TestCase
{
    use DatabaseTransactions;

    ///////////
    // TESTS //
    ///////////

    /** @test */
    public function it_presents_the_business_home()
    {
        // Given I am a guest user
        $business = factory(Business::class)->create();

        // And I visit the homepage
        $this->visit(route('guest.business.home', $business));

        // Then I should see the business home
        $this->see($business->name)
             ->see(substr($business->description, 0, 15));
    }
}

--- 
+++ 
@@ -6,6 +6,7 @@
 class GuestBusinessControllerTest extends TestCase
 {
     use DatabaseTransactions;
+    use CreateBusiness;
 
     ///////////
     // TESTS //
@@ -15,7 +16,7 @@
     public function it_presents_the_business_home()
     {
         // Given I am a guest user
-        $business = factory(Business::class)->create();
+        $business = $this->createBusiness();
 
         // And I visit the homepage
         $this->visit(route('guest.business.home', $business));
Simplify test code by using helpers
