Skip to content

Commit

Permalink
minor #5682 Fix grammar and CS (iamdto)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.3 branch.

Discussion
----------

Fix grammar and CS

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | -

Commits
-------

2c14b65 Fix grammar and CS
  • Loading branch information
xabbuh committed Sep 9, 2015
2 parents 404ed93 + 2c14b65 commit 18c4053
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 18c4053

Please sign in to comment.