Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
EcomDev_PHPUnit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Open
EcomDev_PHPUnit
Commits
81ee78b5
Commit
81ee78b5
authored
Feb 17, 2013
by
Ivan Chepurnyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
! Fixes for controller tests and new @registry annotation for registry keys reset
parent
192d7052
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
app/code/community/EcomDev/PHPUnit/Controller/Front.php
app/code/community/EcomDev/PHPUnit/Controller/Front.php
+1
-1
app/code/community/EcomDev/PHPUnit/Model/Fixture/Processor/Registry.php
...nity/EcomDev/PHPUnit/Model/Fixture/Processor/Registry.php
+4
-2
lib/EcomDev/PHPUnit/Constraint/Config/Layout.php
lib/EcomDev/PHPUnit/Constraint/Config/Layout.php
+2
-0
No files found.
app/code/community/EcomDev/PHPUnit/Controller/Front.php
View file @
81ee78b5
...
...
@@ -31,7 +31,7 @@ class EcomDev_PHPUnit_Controller_Front extends Mage_Core_Controller_Varien_Front
*/
public
function
init
()
{
if
(
$this
->
_routers
)
{
;
if
(
$this
->
_routers
)
{
$this
->
_routers
=
array
();
}
...
...
app/code/community/EcomDev/PHPUnit/Model/Fixture/Processor/Registry.php
View file @
81ee78b5
...
...
@@ -23,6 +23,7 @@
* @singleton catalog/product_type
* @resource catalog/product
* @helper catalog
* @registry key
*
* or by specifying it in Yaml file:
*
...
...
@@ -55,7 +56,8 @@ class EcomDev_PHPUnit_Model_Fixture_Processor_Registry implements EcomDev_PHPUni
$typeToKey
=
array
(
'singleton'
=>
'_singleton/'
,
'resource'
=>
'_resource_singleton/'
,
'helper'
=>
'_helper/'
'helper'
=>
'_helper/'
,
'registry'
=>
''
);
if
(
$fixture
->
getStorageData
(
self
::
STORAGE_KEY
)
!==
null
)
{
...
...
@@ -116,7 +118,7 @@ class EcomDev_PHPUnit_Model_Fixture_Processor_Registry implements EcomDev_PHPUni
{
$options
=
$fixture
->
getOptions
();
$registry
=
array
();
foreach
(
array
(
'singleton'
,
'resource'
,
'helper'
)
as
$type
)
{
foreach
(
array
(
'singleton'
,
'resource'
,
'helper'
,
'registry'
)
as
$type
)
{
if
(
!
isset
(
$options
[
$type
]))
{
continue
;
}
...
...
lib/EcomDev/PHPUnit/Constraint/Config/Layout.php
View file @
81ee78b5
...
...
@@ -173,6 +173,8 @@ class EcomDev_PHPUnit_Constraint_Config_Layout
$assertion
=
self
::
getDesignPackageModel
()
->
getLayoutFileAssertion
(
$this
->
_expectedValue
,
$this
->
_area
,
$this
->
_designPackage
,
$this
->
_theme
);
$this
->
setActualValue
(
$assertion
[
'actual'
]);
$this
->
_expectedValue
=
$assertion
[
'expected'
];
return
$this
->
compareValues
(
$assertion
[
'expected'
],
$assertion
[
'actual'
]);
}
...
...
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