Skip to content

Updated testing/* articles to Symfony 4 #8705

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 2 commits into from
Nov 21, 2017

Conversation

javiereguiluz
Copy link
Member

No description provided.

@javiereguiluz javiereguiluz added this to the 4.0 milestone Nov 20, 2017
testing.rst Outdated
To run your functional tests, the ``WebTestCase`` class needs to know which
is the application kernel to bootstrap it. The kernel class is usually
defined in the ``KERNEL_CLASS`` environment variable (included in the
default ``phpunit .xml-dist`` file provided by Symfony):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phpunit.xml.dist

testing.rst Outdated

.. code-block:: xml

<?xml version="1.0" charset="utf-8" ?>
<phpunit>
<php>
<server name="KERNEL_DIR" value="/path/to/your/app/" />
<!-- the value is the FQCN of the application kernel -->
<server name="KERNEL_CLASS" value="App\Kernel" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dbname: testdb
user: testdb
password: testdb
url: 'mysql://USERNAME:[email protected]/DB_NAME?charset=utf8mb4&serverVersion=5.7'
Copy link
Member

@yceruto yceruto Nov 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As Doctrine configuration has defined an environment variable '%env(resolve:DATABASE_URL)%' for all env, I guess we should do the changes in phpunit.xml.dist file, adding <env name="DATABASE_URL" value="..."/>? then this whole configuration will be gone.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better. Thanks!

@weaverryan weaverryan merged commit d396d8a into symfony:master Nov 21, 2017
weaverryan added a commit that referenced this pull request Nov 21, 2017
This PR was squashed before being merged into the master branch (closes #8705).

Discussion
----------

Updated testing/* articles to Symfony 4

Commits
-------

d396d8a Fixed everything
62228ec Updated testing/* articles to Symfony 4
weaverryan added a commit that referenced this pull request Nov 21, 2017
…luz)

This PR was merged into the 2.7 branch.

Discussion
----------

Some fixes for testing/* articles in 2.7 docs

Spotted while updating #8705.

Commits
-------

f75f21a Some fixes for testing/* articles in 2.7 docs
weaverryan added a commit that referenced this pull request Nov 21, 2017
…uiluz)

This PR was merged into the 3.3 branch.

Discussion
----------

Removed a deprecated feature in a testing article

Spotted while working on #8705.

This is no longer needed because all profiler storage engines were removed: https://symfony.com/doc/current/profiler/storage.html

Commits
-------

eb30e13 Removed a deprecated feature in a testing article
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants