with('index'); Auth::shouldReceive('check')->andReturn(true); // call $this->call('GET', '/'); // test $this->assertResponseOk(); } }