Skip to content

Commit eefac70

Browse files
authored
Merge branch '2.4-develop' into graphql-mutation-for-subscription
2 parents 670d0b1 + 8d90d12 commit eefac70

File tree

10,507 files changed

+187455
-208505
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

10,507 files changed

+187455
-208505
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Fields marked with (*) are required. Please don't remove the template.
1111

1212
### Preconditions (*)
1313
<!---
14-
Provide the exact Magento version (example: 2.3.2) and any important information on the environment where bug is reproducible.
14+
Provide the exact Magento version (example: 2.4.0) and any important information on the environment where bug is reproducible.
1515
-->
1616
1.
1717
2.
@@ -32,3 +32,12 @@ Important: Provide a set of clear steps to reproduce this bug. We can not provid
3232
<!--- Tell us what happened instead. Include error messages and issues. -->
3333
1. [Screenshots, logs or description]
3434
2.
35+
36+
---
37+
Please provide [Severity](https://devdocs.magento.com/guides/v2.3/contributor-guide/contributing.html#backlog) assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
38+
39+
- [ ] Severity: **S0** _- Affects critical data or functionality and leaves users without workaround._
40+
- [ ] Severity: **S1** _- Affects critical data or functionality and forces users to employ a workaround._
41+
- [ ] Severity: **S2** _- Affects non-critical data or functionality and forces users to employ a workaround._
42+
- [ ] Severity: **S3** _- Affects non-critical data or functionality and does not force users to employ a workaround._
43+
- [ ] Severity: **S4** _- Affects aesthetics, professional look and feel, “quality” or “usability”._

.github/ISSUE_TEMPLATE/developer-experience-issue.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,12 @@ Fields marked with (*) are required. Please don't remove the template.
1818

1919
### Proposed solution
2020
<!--- Suggest your potential solutions for this issue. -->
21+
22+
---
23+
Please provide [Severity](https://devdocs.magento.com/guides/v2.3/contributor-guide/contributing.html#backlog) assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
24+
25+
- [ ] Severity: **S0** _- Affects critical data or functionality and leaves users with no workaround._
26+
- [ ] Severity: **S1** _- Affects critical data or functionality and forces users to employ a workaround._
27+
- [ ] Severity: **S2** _- Affects non-critical data or functionality and forces users to employ a workaround._
28+
- [ ] Severity: **S3** _- Affects non-critical data or functionality and does not force users to employ a workaround._
29+
- [ ] Severity: **S4** _- Affects aesthetics, professional look and feel, “quality” or “usability”._

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
If relevant, please provide a list of fixed issues in the format magento/magento2#<issue_number>.
2424
There could be 1 or more issues linked here and it will help us find some more information about the reasoning behind this change.
2525
-->
26-
1. magento/magento2#<issue_number>: Issue title
26+
1. Fixes magento/magento2#<issue_number>
2727

2828
### Manual testing scenarios (*)
2929
<!---

.travis.yml.sample

Lines changed: 0 additions & 68 deletions
This file was deleted.

app/code/Magento/AdminAnalytics/Test/Mftf/ActionGroup/_Deprecated_ActionGroup/LoginAdminWithCredentialsActionGroup.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

app/code/Magento/AdminAnalytics/Test/Mftf/ActionGroup/_Deprecated_ActionGroup/LoginAsAdminActionGroup.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

app/code/Magento/AdminAnalytics/Test/Unit/Condition/CanViewNotificationTest.php

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,47 +3,43 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\AdminAnalytics\Test\Unit\Condition;
79

810
use Magento\AdminAnalytics\Model\Condition\CanViewNotification;
911
use Magento\AdminAnalytics\Model\ResourceModel\Viewer\Logger;
1012
use Magento\AdminAnalytics\Model\Viewer\Log;
13+
use Magento\Framework\App\CacheInterface;
1114
use Magento\Framework\App\ProductMetadataInterface;
1215
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
13-
use Magento\Framework\App\CacheInterface;
16+
use PHPUnit\Framework\MockObject\MockObject;
17+
use PHPUnit\Framework\TestCase;
1418

15-
/**
16-
* Class CanViewNotificationTest
17-
*/
18-
class CanViewNotificationTest extends \PHPUnit\Framework\TestCase
19+
class CanViewNotificationTest extends TestCase
1920
{
2021
/** @var CanViewNotification */
2122
private $canViewNotification;
2223

23-
/** @var Logger|\PHPUnit_Framework_MockObject_MockObject */
24+
/** @var Logger|MockObject */
2425
private $viewerLoggerMock;
2526

26-
/** @var ProductMetadataInterface|\PHPUnit_Framework_MockObject_MockObject */
27+
/** @var ProductMetadataInterface|MockObject */
2728
private $productMetadataMock;
2829

29-
/** @var Log|\PHPUnit_Framework_MockObject_MockObject */
30+
/** @var Log|MockObject */
3031
private $logMock;
3132

32-
/** @var $cacheStorageMock \PHPUnit_Framework_MockObject_MockObject|CacheInterface */
33+
/** @var MockObject|CacheInterface $cacheStorageMock */
3334
private $cacheStorageMock;
3435

35-
public function setUp()
36+
protected function setUp(): void
3637
{
3738
$this->cacheStorageMock = $this->getMockBuilder(CacheInterface::class)
3839
->getMockForAbstractClass();
39-
$this->logMock = $this->getMockBuilder(Log::class)
40-
->getMock();
41-
$this->viewerLoggerMock = $this->getMockBuilder(Logger::class)
42-
->disableOriginalConstructor()
43-
->getMock();
44-
$this->productMetadataMock = $this->getMockBuilder(ProductMetadataInterface::class)
45-
->disableOriginalConstructor()
46-
->getMock();
40+
$this->logMock = $this->createMock(Log::class);
41+
$this->viewerLoggerMock = $this->createMock(Logger::class);
42+
$this->productMetadataMock = $this->getMockForAbstractClass(ProductMetadataInterface::class);
4743
$objectManager = new ObjectManager($this);
4844
$this->canViewNotification = $objectManager->getObject(
4945
CanViewNotification::class,

app/code/Magento/AdminAnalytics/composer.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"sort-packages": true
66
},
77
"require": {
8-
"php": "~7.1.3||~7.2.0||~7.3.0",
8+
"php": "~7.3.0||~7.4.0",
99
"magento/framework": "*",
1010
"magento/module-backend": "*",
1111
"magento/module-config": "*",
@@ -18,12 +18,11 @@
1818
"AFL-3.0"
1919
],
2020
"autoload": {
21-
"files": [
22-
"registration.php"
23-
],
24-
"psr-4": {
25-
"Magento\\AdminAnalytics\\": ""
26-
}
21+
"files": [
22+
"registration.php"
23+
],
24+
"psr-4": {
25+
"Magento\\AdminAnalytics\\": ""
26+
}
2727
}
2828
}
29-

app/code/Magento/AdminAnalytics/etc/db_schema.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
1010
<table name="admin_analytics_usage_version_log" resource="default" engine="innodb"
1111
comment="Admin Notification Viewer Log Table">
12-
<column xsi:type="int" name="id" padding="10" unsigned="true" nullable="false" identity="true"
12+
<column xsi:type="int" name="id" unsigned="true" nullable="false" identity="true"
1313
comment="Log ID"/>
1414
<column xsi:type="varchar" name="last_viewed_in_version" nullable="false" length="50"
1515
comment="Viewer last viewed on product version"/>

app/code/Magento/AdminNotification/Test/Unit/Block/Grid/Renderer/ActionsTest.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use Magento\Framework\Escaper;
1919
use Magento\Framework\Url\Helper\Data;
2020
use Magento\Framework\UrlInterface;
21+
use PHPUnit\Framework\MockObject\MockObject;
2122
use PHPUnit\Framework\TestCase;
2223

2324
class ActionsTest extends TestCase
@@ -28,25 +29,25 @@ class ActionsTest extends TestCase
2829
*/
2930
private $sut;
3031

31-
protected function setUp() : void
32+
protected function setUp(): void
3233
{
3334
parent::setUp();
3435

35-
/** @var Escaper | \PHPUnit_Framework_MockObject_MockObject $escaperMock */
36-
$escaperMock = $this->getMockBuilder(Escaper::class)->disableOriginalConstructor()->getMock();
36+
/** @var Escaper|MockObject $escaperMock */
37+
$escaperMock = $this->createMock(Escaper::class);
3738
$escaperMock->expects($this->once())->method('escapeUrl')->willReturn('https://magento.com');
3839

39-
/** @var UrlInterface | \PHPUnit_Framework_MockObject_MockObject $urlBuilder */
40-
$urlBuilder = $this->getMockBuilder(UrlInterface::class)->getMock();
40+
/** @var UrlInterface|MockObject $urlBuilder */
41+
$urlBuilder = $this->getMockForAbstractClass(UrlInterface::class);
4142
$urlBuilder->expects($this->once())->method('getUrl')->willReturn('http://magento.com');
4243

43-
/** @var Context | \PHPUnit_Framework_MockObject_MockObject $contextMock */
44-
$contextMock = $this->getMockBuilder(Context::class)->disableOriginalConstructor()->getMock();
44+
/** @var Context|MockObject $contextMock */
45+
$contextMock = $this->createMock(Context::class);
4546
$contextMock->expects($this->once())->method('getEscaper')->willReturn($escaperMock);
4647
$contextMock->expects($this->once())->method('getUrlBuilder')->willReturn($urlBuilder);
4748

48-
/** @var Data | \PHPUnit_Framework_MockObject_MockObject $urlHelperMock */
49-
$urlHelperMock = $this->getMockBuilder(Data::class)->disableOriginalConstructor()->getMock();
49+
/** @var Data|MockObject $urlHelperMock */
50+
$urlHelperMock = $this->createMock(Data::class);
5051
$urlHelperMock->expects($this->once())->method('getEncodedUrl')->willReturn('http://magento.com');
5152

5253
$this->sut = new Actions($contextMock, $urlHelperMock);

app/code/Magento/AdminNotification/Test/Unit/Block/Grid/Renderer/NoticeTest.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
namespace Magento\AdminNotification\Test\Unit\Block\Grid\Renderer;
1313

1414
use Magento\AdminNotification\Block\Grid\Renderer\Notice;
15+
use Magento\Backend\Block\Context;
1516
use Magento\Framework\DataObject;
1617
use Magento\Framework\Escaper;
17-
use Magento\Backend\Block\Context;
18+
use PHPUnit\Framework\MockObject\MockObject;
1819
use PHPUnit\Framework\TestCase;
1920

2021
class NoticeTest extends TestCase
@@ -26,16 +27,16 @@ class NoticeTest extends TestCase
2627
*/
2728
private $sut;
2829

29-
protected function setUp() : void
30+
protected function setUp(): void
3031
{
3132
parent::setUp();
3233

33-
/** @var Escaper | \PHPUnit_Framework_MockObject_MockObject $escaperMock */
34-
$escaperMock = $this->getMockBuilder(Escaper::class)->disableOriginalConstructor()->getMock();
34+
/** @var Escaper|MockObject $escaperMock */
35+
$escaperMock = $this->createMock(Escaper::class);
3536
$escaperMock->expects($this->exactly(2))->method('escapeHtml')->willReturn('<div>Some random html</div>');
3637

37-
/** @var Context | \PHPUnit_Framework_MockObject_MockObject $contextMock */
38-
$contextMock = $this->getMockBuilder(Context::class)->disableOriginalConstructor()->getMock();
38+
/** @var Context|MockObject $contextMock */
39+
$contextMock = $this->createMock(Context::class);
3940
$contextMock->expects($this->once())->method('getEscaper')->willReturn($escaperMock);
4041

4142
$this->sut = new Notice($contextMock);

app/code/Magento/AdminNotification/Test/Unit/Block/Grid/Renderer/SeverityTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Magento\Backend\Block\Context;
1717
use Magento\Backend\Block\Widget\Grid\Column;
1818
use Magento\Framework\DataObject;
19-
use Magento\Framework\Escaper;
19+
use PHPUnit\Framework\MockObject\MockObject;
2020
use PHPUnit\Framework\TestCase;
2121

2222
class SeverityTest extends TestCase
@@ -28,22 +28,22 @@ class SeverityTest extends TestCase
2828
*/
2929
private $sut;
3030

31-
protected function setUp() : void
31+
protected function setUp(): void
3232
{
3333
parent::setUp();
3434

35-
/** @var Inbox |\PHPUnit_Framework_MockObject_MockObject $inboxMock */
36-
$inboxMock = $this->getMockBuilder(Inbox::class)->disableOriginalConstructor()->getMock();
35+
/** @var Inbox|MockObject $inboxMock */
36+
$inboxMock = $this->createMock(Inbox::class);
3737

38-
/** @var Context | \PHPUnit_Framework_MockObject_MockObject $contextMock */
39-
$contextMock = $this->getMockBuilder(Context::class)->disableOriginalConstructor()->getMock();
38+
/** @var Context|MockObject $contextMock */
39+
$contextMock = $this->createMock(Context::class);
4040

4141
$this->sut = new Severity($contextMock, $inboxMock);
4242
}
4343

4444
public function testShouldRenderSeverity() : void
4545
{
46-
/** @var Column | \PHPUnit_Framework_MockObject_MockObject $columnMock */
46+
/** @var Column|MockObject $columnMock */
4747
$columnMock = $this->getMockBuilder(Column::class)
4848
->disableOriginalConstructor()
4949
->setMethods(['getIndex'])

0 commit comments

Comments
 (0)