Skip to content

Commit

Permalink
Remove references to deprecated help option (#1086)
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed Aug 13, 2020
1 parent a1b716f commit 22df79c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
10 changes: 3 additions & 7 deletions docs/reference/form_field_definition.rst
Expand Up @@ -24,14 +24,10 @@ Example
$formMapper
->add('author', ModelListType::class, [])
->add('enabled')
->add('title')
// you can define help messages using Symfony help option
->add('title', null, ['help' => 'help_post_title'])
->add('abstract', null, ['required' => false])
->add('content')
// you can define help messages like this
->setHelps([
'title' => $this->trans('help_post_title')
]);
->add('content');
}
public function validate(ErrorElement $errorElement, $object)
Expand Down
8 changes: 0 additions & 8 deletions tests/Admin/FieldDescriptionTest.php
Expand Up @@ -146,14 +146,6 @@ public function testGetParent(): void
$this->assertSame($adminMock, $field->getParent());
}

public function testGetHelp(): void
{
$field = new FieldDescription();
$field->setHelp('help message');

$this->assertSame($field->getHelp(), 'help message');
}

public function testGetAdmin(): void
{
$adminMock = $this->createMock(AdminInterface::class);
Expand Down

0 comments on commit 22df79c

Please sign in to comment.