public function testEditStaffFail() { $user = App\User::all()->last(); $staff = App\Staff::all()->last(); $this->actingAs($user)->visit('/staff/' . $staff->Id . '/edit')->type('', 'Name')->type('Bradfordddd, Laisteridgeeeee Lane, Revissss Barber Halls, BD71LD', 'Address')->type('075113765422', 'PhoneNo')->type('andrei@@test.com', 'Email')->press('Edit staff'); $newStaff = App\Staff::find(['Id' => $staff->Id])->first(); $this->assertEquals($staff->Address, $newStaff->Address); }