Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6d158d8

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: Finish testing article rewrites Finalize testing document rewrite Very rough sketch of better testing docs
2 parents b81af76 + a24fc59 commit 6d158d8

5 files changed

Lines changed: 582 additions & 694 deletions

File tree

.doctor-rst.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,4 @@ whitelist:
102102
- '.. code-block:: twig'
103103
- '.. versionadded:: 3.6' # MonologBundle
104104
- '// bin/console'
105+
- 'End to End Tests (E2E)'

best_practices.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ Smoke Test your URLs
400400

401401
In software engineering, `smoke testing`_ consists of *"preliminary testing to
402402
reveal simple failures severe enough to reject a prospective software release"*.
403-
Using :ref:`PHPUnit data providers <testing-data-providers>` you can define a
404-
functional test that checks that all application URLs load successfully::
403+
Using `PHPUnit data providers`_ you can define a functional test that
404+
checks that all application URLs load successfully::
405405

406406
// tests/ApplicationAvailabilityFunctionalTest.php
407407
namespace App\Tests;
@@ -455,3 +455,4 @@ you must set up a redirection.
455455
.. _`feature toggles`: https://en.wikipedia.org/wiki/Feature_toggle
456456
.. _`smoke testing`: https://en.wikipedia.org/wiki/Smoke_testing_(software)
457457
.. _`Webpack`: https://webpack.js.org/
458+
.. _`PHPUnit data providers`: https://phpunit.readthedocs.io/en/stable/writing-tests-for-phpunit.html#data-providers

form/unit_testing.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ variable exists and will be available in your form themes::
121121

122122
.. tip::
123123

124-
Use :ref:`PHPUnit data providers <testing-data-providers>` to test multiple
125-
form conditions using the same test code.
124+
Use `PHPUnit data providers`_ to test multiple form conditions using
125+
the same test code.
126126

127127
.. caution::
128128

@@ -242,3 +242,5 @@ guessers using the :method:`Symfony\\Component\\Form\\Test\\FormIntegrationTestC
242242
:method:`Symfony\\Component\\Form\\Test\\FormIntegrationTestCase::getTypeExtensions`
243243
and :method:`Symfony\\Component\\Form\\Test\\FormIntegrationTestCase::getTypeGuessers`
244244
methods.
245+
246+
.. _`PHPUnit data providers`: https://phpunit.readthedocs.io/en/stable/writing-tests-for-phpunit.html#data-providers

0 commit comments

Comments
 (0)