Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-logs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-logs
Commits
e60c3ecd
Commit
e60c3ecd
authored
6 years ago
by
dyszczo
Browse files
Options
Downloads
Patches
Plain Diff
fix for static registry
parent
892bfee8
No related branches found
No related tags found
1 merge request
!12
PB-587 Fatal przy nadawaniu przesyłki - multiple wc capture
Pipeline
#6787
passed
6 years ago
Stage: tools
Stage: tests
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/integration/TestWPDeskLoggerFactory.php
+3
-1
3 additions, 1 deletion
tests/integration/TestWPDeskLoggerFactory.php
with
3 additions
and
1 deletion
tests/integration/TestWPDeskLoggerFactory.php
+
3
−
1
View file @
e60c3ecd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
use
Monolog\Handler\AbstractHandler
;
use
Monolog\Handler\AbstractHandler
;
use
Monolog\Logger
;
use
Monolog\Logger
;
use
PHPUnit\Framework\Error\Notice
;
use
Monolog\Registry
;
use
WPDesk\Logger\WC\WooCommerceCapture
;
use
WPDesk\Logger\WC\WooCommerceCapture
;
use
WPDesk\Logger\WC\WooCommerceMonologPlugin
;
use
WPDesk\Logger\WC\WooCommerceMonologPlugin
;
use
WPDesk\Logger\WPDeskLoggerFactory
;
use
WPDesk\Logger\WPDeskLoggerFactory
;
...
@@ -82,6 +82,7 @@ class TestWPDeskLoggerFactory extends WP_UnitTestCase
...
@@ -82,6 +82,7 @@ class TestWPDeskLoggerFactory extends WP_UnitTestCase
public
function
testOurLogsGetAllMessagesLoggedToWC
()
public
function
testOurLogsGetAllMessagesLoggedToWC
()
{
{
Registry
::
clear
();
if
(
WooCommerceCapture
::
isSupportedWCVersion
())
{
if
(
WooCommerceCapture
::
isSupportedWCVersion
())
{
$someMessage
=
'whatever'
;
$someMessage
=
'whatever'
;
$logger
=
(
new
WPDeskLoggerFactory
())
->
createWPDeskLogger
();
$logger
=
(
new
WPDeskLoggerFactory
())
->
createWPDeskLogger
();
...
@@ -119,6 +120,7 @@ class TestWPDeskLoggerFactory extends WP_UnitTestCase
...
@@ -119,6 +120,7 @@ class TestWPDeskLoggerFactory extends WP_UnitTestCase
public
function
testAllLoggedMessagesAreWrittenToWC
()
public
function
testAllLoggedMessagesAreWrittenToWC
()
{
{
Registry
::
clear
();
if
(
WooCommerceCapture
::
isSupportedWCVersion
())
{
if
(
WooCommerceCapture
::
isSupportedWCVersion
())
{
$mockWcLogger
=
$this
->
createMock
(
WC_Logger
::
class
);
$mockWcLogger
=
$this
->
createMock
(
WC_Logger
::
class
);
$mockWcLogger
$mockWcLogger
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment