-
Notifications
You must be signed in to change notification settings - Fork 9.4k
#27500 PHPUnit 8 for module Cookie #27708
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
#27500 PHPUnit 8 for module Cookie #27708
Conversation
Hi @lbajsarowicz. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
c280907
to
1321d7b
Compare
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.
Hi @lbajsarowicz thank you for these improvements. Could you please check these minor adjustments?
Let's also see the checks result.
Thank you.
@@ -8,34 +8,36 @@ | |||
|
|||
namespace Magento\Cookie\Test\Unit\Block; | |||
|
|||
use PHPUnit\Framework\TestCase; | |||
use PHPUnit\Framework\MockObject\MockObject; |
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.
Could you please sort these imports ascending?
@@ -5,60 +5,68 @@ | |||
*/ | |||
namespace Magento\Cookie\Test\Unit\Controller\Index; | |||
|
|||
use PHPUnit\Framework\TestCase; |
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.
The same here
@@ -5,39 +5,49 @@ | |||
*/ | |||
namespace Magento\Cookie\Test\Unit\Helper; | |||
|
|||
class CookieTest extends \PHPUnit\Framework\TestCase | |||
use PHPUnit\Framework\TestCase; |
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.
Same here
@@ -5,29 +5,36 @@ | |||
*/ | |||
namespace Magento\Cookie\Test\Unit\Model\Config\Backend; | |||
|
|||
use PHPUnit\Framework\TestCase; |
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.
Same here
@@ -8,33 +8,37 @@ | |||
|
|||
namespace Magento\Cookie\Test\Unit\Model\Config\Backend; | |||
|
|||
use PHPUnit\Framework\TestCase; |
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.
Same here
@@ -5,60 +5,68 @@ | |||
*/ |
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.
Could you please also declare the declare(strict_types=1);
?
*/ | |
*/ | |
declare(strict_types=1); |
@@ -5,39 +5,49 @@ | |||
*/ |
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.
*/ | |
*/ | |
declare(strict_types=1); |
@@ -5,29 +5,36 @@ | |||
*/ |
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.
*/ | |
*/ | |
declare(strict_types=1); |
@@ -8,33 +8,37 @@ | |||
|
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.
declare(strict_types=1); | |
@@ -8,34 +8,38 @@ | |||
|
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.
declare(strict_types=1); | |
@eduard13 @lbajsarowicz Already PR #27658 raised for Module_Cookie with PHPUnit 8 compatibility. So I think this PR needs to be closed. |
Thank you @srsathish92. |
Hi @lbajsarowicz, thank you for your contribution! |
Description (*)
Preparing PHPUnit Tests to run with PHPUnit 8.
PRs for each module is separated to make tests easier to merge.
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
N/A
Questions or comments
PR #27701 needs to be merged first (otherwise PHPUnit tests fail)
Contribution checklist (*)