update() публичный Метод

Update an existing recipe.
public update ( array $input ) : boolean
$input array Data to update a recipe
Результат boolean
Пример #1
0
 public function test_Should_FailToUpdate_When_ValidationFails()
 {
     $this->mockValidator->shouldReceive('with')->once()->andReturn($this->mockValidator);
     $this->mockValidator->shouldReceive('passes')->once()->andReturn(false);
     $form = new RecipeForm($this->mockValidator, $this->mockRecipeRepository);
     $result = $form->update([]);
     $this->assertFalse($result, 'Expected update to fail.');
 }