update() public method

Update the specified resource in storage.
public update ( integer $id, UpdateUserRequest $request ) : Response
$id integer
$request App\Http\Requests\user\UpdateUserRequest
return Response
Exemplo n.º 1
0
 /**
  * @author EB
  * @throws \App\Exceptions\RedirectException
  */
 public function testUpdateForException()
 {
     $request = $this->createRequestForTest($this->getPostUserData('*****@*****.**'));
     $controller = new Controllers\UsersController();
     $this->setExpectedException('App\\Exceptions\\RedirectException');
     $controller->update(1, $request);
 }