Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
e40099fd
Commit
e40099fd
authored
Mar 01, 2015
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2426735
by dawehner: Small docs improvements of WebTestBase::rebuildContainer
parent
a701df0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
core/modules/simpletest/src/WebTestBase.php
core/modules/simpletest/src/WebTestBase.php
+4
-6
No files found.
core/modules/simpletest/src/WebTestBase.php
View file @
e40099fd
...
...
@@ -1138,10 +1138,10 @@ protected function writeCustomTranslations() {
/**
* Rebuilds \Drupal::getContainer().
*
* Use this to
build a new kernel and service container. For example, when the
* list of enabled modules is changed via the internal
browser, in which case
* the test process
still contains an old
kernel
and
service container with an
*
old
module list.
* Use this to
update the test process's kernel with a new service container.
*
For example, when the
list of enabled modules is changed via the internal
*
browser
the test process
's
kernel
has a
service container with an
out of
*
date
module list.
*
* @see TestBase::prepareEnvironment()
* @see TestBase::restoreEnvironment()
...
...
@@ -1152,8 +1152,6 @@ protected function writeCustomTranslations() {
* enabled modules to be immediately available in the same request.
*/
protected
function
rebuildContainer
()
{
// Maintain the current global request object.
$request
=
\
Drupal
::
request
();
// Rebuild the kernel and bring it back to a fully bootstrapped state.
$this
->
container
=
$this
->
kernel
->
rebuildContainer
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment