make(['username' => '123456']); $this->actingAs($user); $this->visit(route('change-password')); $this->type('secret','old_password'); $this->type('member','password'); $this->type('member','password_confirmation'); $this->press(trans('auth.change_password')); $this->see(trans('auth.old_password_success')); $this->seePageIs(route('change-password')); $this->assertTrue(app('hash')->check('member', $user->password)); } }