Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix grammar and CS #5682

Merged
merged 1 commit into from
Sep 9, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cookbook/form/unit_testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ before creating the parent form using the ``PreloadedExtension`` class::
protected function getExtensions()
{
$childType = new TestChildType();

return array(new PreloadedExtension(array(
$childType->getName() => $childType,
), array()));
Expand Down Expand Up @@ -165,7 +166,7 @@ It often happens that you use some options that are added by
cases may be the ``ValidatorExtension`` with its ``invalid_message`` option.
The ``TypeTestCase`` loads only the core form extension so an "Invalid option"
exception will be raised if you try to use it for testing a class that depends
on other extensions. You need add those extensions to the factory object::
on other extensions. You need to add those extensions to the factory object::

// src/AppBundle/Tests/Form/Type/TestedTypeTests.php
namespace AppBundle\Tests\Form\Type;
Expand Down