<?php

use App\UserRegistrationRequest;
use Illuminate\Foundation\Testing\DatabaseMigrations;

class RegisterTest extends TestCase
{
  use DatabaseMigrations;

  /**
   * A basic test example.
   */
  public function testExample()
  {
    $code       = new UserRegistrationRequest();
    $code->id   = 1234567;
    $code->code = 'XXXXX-XXXXX-XXXXX';
    $code->save();

    $this->visit('/register')
        ->type($code->id, 'id')
        ->type($code->code, 'code')
        ->type('Fox', 'first_name')
        ->type('Red', 'middle_name')
        ->type('Snow', 'last_name')
        ->type('snow_fox@gmail.com', 'email')
        ->type('fox123', 'password')
        ->type('fox123', 'password_confirmation')
        ->press('Register')
        ->seePageIs('/home');
  }
}

<?php

use App\UserRegistrationRequest;
use Illuminate\Foundation\Testing\DatabaseMigrations;

class RegisterTest extends TestCase
{
  use DatabaseMigrations;

  /**
   * A basic test example.
   */
  public function testRegister()
  {
    $code       = new UserRegistrationRequest();
    $code->id   = 1234567;
    $code->code = 'XXXXX-XXXXX-XXXXX';
    $code->save();

    $this->visit('/register')
        ->type($code->id, 'id')
        ->type($code->code, 'code')
        ->type('Fox', 'first_name')
        ->type('Red', 'middle_name')
        ->type('Snow', 'last_name')
        ->type('snow_fox@gmail.com', 'email')
        ->type('fox123', 'password')
        ->type('fox123', 'password_confirmation')
        ->press('Register')
        ->seePageIs('/home');
  }
}

Rename method 'testExample' to 'testRegister'
Rename method 'testExample' to 'testRegister'
