Skip to content

[Testing] Restructure/rewrite testing docs #14731

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

Merged
merged 3 commits into from
Apr 17, 2021
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .doctor-rst.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,4 @@ whitelist:
- ".. _`Deploying Symfony 4 Apps on Heroku`: https://devcenter.heroku.com/articles/deploying-symfony4"
- '.. versionadded:: 0.2' # MercureBundle
- '.. code-block:: twig'
- 'End to End Tests (E2E)'
5 changes: 3 additions & 2 deletions best_practices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,8 @@ Smoke Test your URLs

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

// tests/ApplicationAvailabilityFunctionalTest.php
namespace App\Tests;
Expand Down Expand Up @@ -454,3 +454,4 @@ you must set up a redirection.
.. _`feature toggles`: https://en.wikipedia.org/wiki/Feature_toggle
.. _`smoke testing`: https://en.wikipedia.org/wiki/Smoke_testing_(software)
.. _`Webpack`: https://webpack.js.org/
.. _`PHPUnit data providers`: https://phpunit.readthedocs.io/en/stable/writing-tests-for-phpunit.html#data-providers
6 changes: 4 additions & 2 deletions form/unit_testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ variable exists and will be available in your form themes::

.. tip::

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

.. caution::

Expand Down Expand Up @@ -242,3 +242,5 @@ guessers using the :method:`Symfony\\Component\\Form\\Test\\FormIntegrationTestC
:method:`Symfony\\Component\\Form\\Test\\FormIntegrationTestCase::getTypeExtensions`
and :method:`Symfony\\Component\\Form\\Test\\FormIntegrationTestCase::getTypeGuessers`
methods.

.. _`PHPUnit data providers`: https://phpunit.readthedocs.io/en/stable/writing-tests-for-phpunit.html#data-providers
Loading