Ejemplo n.º 1
0
 public function testUserCreate()
 {
     $user = App\User::firstOrFail();
     $this->be($user);
     $this->visit('users/create')->type('SomeName', 'firstname')->type('SomeLastname', 'lastname')->type('*****@*****.**', 'email')->press('Save')->seePageIs('/users');
     $this->assertSessionHas('message');
 }