-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/tests #302
Feature/tests #302
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #302 +/- ##
=============================================
+ Coverage 79.74% 80.97% +1.22%
+ Complexity 1187 1186 -1
=============================================
Files 131 131
Lines 3584 3584
=============================================
+ Hits 2858 2902 +44
+ Misses 726 682 -44
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -4,7 +4,6 @@ | |||
"system", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check which ones are being redefined from BrainMonkey when
and just remove the ones we are not mocking?
@@ -201,6 +222,7 @@ private function getGeolocation(): string | |||
$ipAddr = $this->getIpAddress(); | |||
} | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slip?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some minor comments, great job 👍🏼
$mock->shouldReceive('setCookie')->withArgs(function (string $name, string $value) { | ||
putenv("ES_SIDEAFFECT={$name}"); | ||
putenv("ES_SIDEAFFECT_ADDITIONAL={$value}"); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should probably return in closures when using withArgs
, see http://docs.mockery.io/en/latest/reference/expectations.html?highlight=withArgs#argument-matching-with-closures
Co-authored-by: Denis Žoljom <[email protected]>
Co-authored-by: Denis Žoljom <[email protected]>
Co-authored-by: Denis Žoljom <[email protected]>
Co-authored-by: Denis Žoljom <[email protected]>
* develop: Feature/tests (#302) Add lock true to composer json config # Conflicts: # src/Geolocation/AbstractGeolocation.php # tests/Blocks/BlockVariationCliTest.php # tests/Geolocation/AbstractGeolocationTest.php # tests/Helpers.php
Description