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
9742b6a1
Commit
9742b6a1
authored
Mar 24, 2015
by
Ivan Chepurnyi
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #241 from kojiromike/observe-and-report
Disable Events without Disabling Event Capture
parents
0a8932d6
1e7a0d4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
app/code/community/EcomDev/PHPUnit/Model/App.php
app/code/community/EcomDev/PHPUnit/Model/App.php
+10
-10
No files found.
app/code/community/EcomDev/PHPUnit/Model/App.php
View file @
9742b6a1
...
...
@@ -225,10 +225,10 @@ class EcomDev_PHPUnit_Model_App extends Mage_Core_Model_App
$this
->
replaceRegistry
(
self
::
REGISTRY_PATH_SHARED_STORAGE
,
new
Varien_Object
());
return
$this
;
}
/**
* Sets cache options for test case
*
*
* @param array $options
* @return EcomDev_PHPUnit_Model_App
*/
...
...
@@ -243,7 +243,7 @@ class EcomDev_PHPUnit_Model_App extends Mage_Core_Model_App
/**
* Retrieve cache options for test case
*
*
* @return array
*/
public
function
getCacheOptions
()
...
...
@@ -358,7 +358,7 @@ class EcomDev_PHPUnit_Model_App extends Mage_Core_Model_App
/**
* Returns request for test suite
*
*
* @see Mage_Core_Model_App::getRequest()
* @return EcomDev_PHPUnit_Controller_Request_Http
*/
...
...
@@ -376,7 +376,7 @@ class EcomDev_PHPUnit_Model_App extends Mage_Core_Model_App
/**
* Returns response for test suite
*
*
* @see Mage_Core_Model_App::getResponse()
* @return EcomDev_PHPUnit_Controller_Response_Http
*/
...
...
@@ -527,14 +527,14 @@ class EcomDev_PHPUnit_Model_App extends Mage_Core_Model_App
{
if
(
$this
->
_eventsEnabled
)
{
parent
::
dispatchEvent
(
$eventName
,
$args
);
}
if
(
!
isset
(
$this
->
_dispatchedEvents
[
$eventName
]))
{
$this
->
_dispatchedEvents
[
$eventName
]
=
0
;
}
$this
->
_dispatchedEvents
[
$eventName
]
++
;
if
(
!
isset
(
$this
->
_dispatchedEvents
[
$eventName
]))
{
$this
->
_dispatchedEvents
[
$eventName
]
=
0
;
}
$this
->
_dispatchedEvents
[
$eventName
]
++
;
return
$this
;
}
...
...
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