Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
a6dd9d37
Commit
a6dd9d37
authored
Jan 23, 2015
by
Ivo Kund
Committed by
Alexander Makarov
Jan 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed #6978: Dependency Injection Container not reset when destroying…
Fixed #6978: Dependency Injection Container not reset when destroying application in functional tests
parent
beacdf65
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
CHANGELOG.md
extensions/codeception/CHANGELOG.md
+1
-1
TestCase.php
extensions/codeception/TestCase.php
+3
-0
No files found.
extensions/codeception/CHANGELOG.md
View file @
a6dd9d37
...
@@ -4,7 +4,7 @@ Yii Framework 2 Codeception extension Change Log
...
@@ -4,7 +4,7 @@ Yii Framework 2 Codeception extension Change Log
2.
0.3 under development
2.
0.3 under development
-----------------------
-----------------------
-
no changes in this release.
-
Bug #6978: DI Container is not reset when destroying application in functional tests (ivokund)
2.0.2 January 11, 2015
2.0.2 January 11, 2015
...
...
extensions/codeception/TestCase.php
View file @
a6dd9d37
...
@@ -12,6 +12,7 @@ use yii\base\InvalidConfigException;
...
@@ -12,6 +12,7 @@ use yii\base\InvalidConfigException;
use
Codeception\TestCase\Test
;
use
Codeception\TestCase\Test
;
use
yii\base\UnknownMethodException
;
use
yii\base\UnknownMethodException
;
use
yii\base\UnknownPropertyException
;
use
yii\base\UnknownPropertyException
;
use
yii\di\Container
;
use
yii\test\ActiveFixture
;
use
yii\test\ActiveFixture
;
use
yii\test\BaseActiveFixture
;
use
yii\test\BaseActiveFixture
;
use
yii\test\FixtureTrait
;
use
yii\test\FixtureTrait
;
...
@@ -116,6 +117,7 @@ class TestCase extends Test
...
@@ -116,6 +117,7 @@ class TestCase extends Test
$config
[
'class'
]
=
'yii\web\Application'
;
$config
[
'class'
]
=
'yii\web\Application'
;
}
}
Yii
::
$container
=
new
Container
();
return
Yii
::
createObject
(
$config
);
return
Yii
::
createObject
(
$config
);
}
else
{
}
else
{
throw
new
InvalidConfigException
(
'Please provide a configuration array to mock up an application.'
);
throw
new
InvalidConfigException
(
'Please provide a configuration array to mock up an application.'
);
...
@@ -128,5 +130,6 @@ class TestCase extends Test
...
@@ -128,5 +130,6 @@ class TestCase extends Test
protected
function
destroyApplication
()
protected
function
destroyApplication
()
{
{
Yii
::
$app
=
null
;
Yii
::
$app
=
null
;
Yii
::
$container
=
new
Container
();
}
}
}
}
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