File tree 4 files changed +7
-10
lines changed
Filter options
4 files changed +7
-10
lines changed
Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ call ``setAutoExit(false)`` on it to get the command result in ``CommandTester``
449
449
.. note ::
450
450
451
451
When using the Console component in a standalone project, use
452
- :class: `Symfony\\ Component\\ Console\\ Application <Symfony \\ Component \\ Console \\ Application> `
452
+ :class: `Symfony\\ Component\\ Console\\ Application `
453
453
and extend the normal ``\PHPUnit\Framework\TestCase ``.
454
454
455
455
Logging Command Errors
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ Symfony contributions:
111
111
Core Membership Application
112
112
~~~~~~~~~~~~~~~~~~~~~~~~~~~
113
113
114
- At present, new Symfony Core membership applications are not accepted .
114
+ About once a year, the core team discuss the opportunity to invite new members .
115
115
116
116
Core Membership Revocation
117
117
~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -123,9 +123,6 @@ A Symfony Core membership can be revoked for any of the following reasons:
123
123
* Willful negligence or intent to harm the Symfony project;
124
124
* Upon decision of the **Project Leader **.
125
125
126
- Should new Symfony Core memberships be accepted in the future, revoked
127
- members must wait at least 12 months before re-applying.
128
-
129
126
Code Development Rules
130
127
----------------------
131
128
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ How to Submit a Form with Multiple Buttons
6
6
7
7
When your form contains more than one submit button, you will want to check
8
8
which of the buttons was clicked to adapt the program flow in your controller.
9
- To do this, add a second button with the caption "Save and add " to your form::
9
+ To do this, add a second button with the caption "Save and Add " to your form::
10
10
11
11
$form = $this->createFormBuilder($task)
12
12
->add('task', TextType::class)
@@ -17,7 +17,7 @@ To do this, add a second button with the caption "Save and add" to your form::
17
17
18
18
In your controller, use the button's
19
19
:method: `Symfony\\ Component\\ Form\\ ClickableInterface::isClicked ` method for
20
- querying if the "Save and add " button was clicked::
20
+ querying if the "Save and Add " button was clicked::
21
21
22
22
if ($form->isSubmitted() && $form->isValid()) {
23
23
// ... perform some action, such as saving the task to the database
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ The simplest ``TypeTestCase`` implementation looks like the following::
55
55
];
56
56
57
57
$model = new TestObject();
58
- // $formData will retrieve data from the form submission; pass it as the second argument
58
+ // $model will retrieve data from the form submission; pass it as the second argument
59
59
$form = $this->factory->create(TestedType::class, $model);
60
60
61
61
$expected = new TestObject();
@@ -67,7 +67,7 @@ The simplest ``TypeTestCase`` implementation looks like the following::
67
67
// This check ensures there are no transformation failures
68
68
$this->assertTrue($form->isSynchronized());
69
69
70
- // check that $formData was modified as expected when the form was submitted
70
+ // check that $model was modified as expected when the form was submitted
71
71
$this->assertEquals($expected, $model);
72
72
}
73
73
@@ -88,7 +88,7 @@ The simplest ``TypeTestCase`` implementation looks like the following::
88
88
So, what does it test? Here comes a detailed explanation.
89
89
90
90
First you verify if the ``FormType `` compiles. This includes basic class
91
- inheritance, the ``buildForm() `` function and options resolution. This should
91
+ inheritance, the ``buildForm() `` method and options resolution. This should
92
92
be the first test you write::
93
93
94
94
$form = $this->factory->create(TestedType::class, $formData);
You can’t perform that action at this time.
0 commit comments