Skip to content

Commit

Permalink
Merge branch '2.4-develop' into performance-inline-translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Krzeszowiak authored Apr 21, 2020
2 parents d64eaf4 + 1e28f35 commit 1861c47
Show file tree
Hide file tree
Showing 1,230 changed files with 17,632 additions and 31,878 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,27 @@
use Magento\Framework\App\ProductMetadataInterface;
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
use Magento\Framework\App\CacheInterface;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;

/**
* Class CanViewNotificationTest
*/
class CanViewNotificationTest extends \PHPUnit\Framework\TestCase
class CanViewNotificationTest extends TestCase
{
/** @var CanViewNotification */
private $canViewNotification;

/** @var Logger|\PHPUnit_Framework_MockObject_MockObject */
/** @var Logger|MockObject */
private $viewerLoggerMock;

/** @var ProductMetadataInterface|\PHPUnit_Framework_MockObject_MockObject */
/** @var ProductMetadataInterface|MockObject */
private $productMetadataMock;

/** @var Log|\PHPUnit_Framework_MockObject_MockObject */
/** @var Log|MockObject */
private $logMock;

/** @var $cacheStorageMock \PHPUnit_Framework_MockObject_MockObject|CacheInterface */
/** @var $cacheStorageMock MockObject|CacheInterface */
private $cacheStorageMock;

public function setUp()
protected function setUp(): void
{
$this->cacheStorageMock = $this->getMockBuilder(CacheInterface::class)
->getMockForAbstractClass();
Expand Down
22 changes: 13 additions & 9 deletions app/code/Magento/Amqp/Test/Unit/Setup/ConfigOptionsListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@

namespace Magento\Amqp\Test\Unit\Setup;

use Magento\Amqp\Setup\ConnectionValidator;
use Magento\Framework\Config\Data\ConfigData;
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
use Magento\Amqp\Setup\ConfigOptionsList;
use Magento\Framework\Setup\Option\TextConfigOption;
use Magento\Framework\App\DeploymentConfig;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;

class ConfigOptionsListTest extends \PHPUnit\Framework\TestCase
class ConfigOptionsListTest extends TestCase
{
/**
* @var ObjectManager
Expand All @@ -24,12 +28,12 @@ class ConfigOptionsListTest extends \PHPUnit\Framework\TestCase
private $model;

/**
* @var \Magento\Amqp\Setup\ConnectionValidator|\PHPUnit_Framework_MockObject_MockObject
* @var ConnectionValidator|MockObject
*/
private $connectionValidatorMock;

/**
* @var \Magento\Framework\App\DeploymentConfig|\PHPUnit_Framework_MockObject_MockObject
* @var DeploymentConfig|MockObject
*/
private $deploymentConfigMock;

Expand All @@ -38,7 +42,7 @@ class ConfigOptionsListTest extends \PHPUnit\Framework\TestCase
*/
private $options;

protected function setUp()
protected function setUp(): void
{
$this->options = [
ConfigOptionsList::INPUT_KEY_QUEUE_AMQP_HOST => 'host',
Expand All @@ -51,18 +55,18 @@ protected function setUp()
];

$this->objectManager = new ObjectManager($this);
$this->connectionValidatorMock = $this->getMockBuilder(\Magento\Amqp\Setup\ConnectionValidator::class)
$this->connectionValidatorMock = $this->getMockBuilder(ConnectionValidator::class)
->disableOriginalConstructor()
->setMethods([])
->getMock();

$this->deploymentConfigMock = $this->getMockBuilder(\Magento\Framework\App\DeploymentConfig::class)
$this->deploymentConfigMock = $this->getMockBuilder(DeploymentConfig::class)
->disableOriginalConstructor()
->setMethods([])
->getMock();

$this->model = $this->objectManager->getObject(
\Magento\Amqp\Setup\ConfigOptionsList::class,
ConfigOptionsList::class,
[
'connectionValidator' => $this->connectionValidatorMock,
]
Expand Down Expand Up @@ -135,9 +139,9 @@ public function testCreateConfig($options, $expectedConfigData)
$result = $this->model->createConfig($options, $this->deploymentConfigMock);
$this->assertInternalType('array', $result);
$this->assertNotEmpty($result);
/** @var \Magento\Framework\Config\Data\ConfigData $configData */
/** @var ConfigData $configData */
$configData = $result[0];
$this->assertInstanceOf(\Magento\Framework\Config\Data\ConfigData::class, $configData);
$this->assertInstanceOf(ConfigData::class, $configData);
$this->assertEquals($expectedConfigData, $configData->getData());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</annotations>

<before>
<actionGroup ref = "LoginAsAdmin" stepKey="loginAsAdmin"/>
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
</before>
<after>
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
Expand Down
16 changes: 7 additions & 9 deletions app/code/Magento/Analytics/etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,13 @@
<item name="25" xsi:type="string">payment/banktransfer/active</item>
<item name="26" xsi:type="string">payment/cashondelivery/title</item>
<item name="27" xsi:type="string">payment/cashondelivery/active</item>
<item name="28" xsi:type="string">payment/authorizenet_directpost/title</item>
<item name="29" xsi:type="string">payment/authorizenet_directpost/active</item>
<item name="30" xsi:type="string">payment/paypal_billing_agreement/title</item>
<item name="31" xsi:type="string">payment/paypal_billing_agreement/active</item>
<item name="32" xsi:type="string">payment/braintree/title</item>
<item name="33" xsi:type="string">payment/braintree/active</item>
<item name="34" xsi:type="string">payment/braintree_paypal/title</item>
<item name="35" xsi:type="string">payment/braintree_paypal/active</item>
<item name="36" xsi:type="string">analytics/general/vertical</item>
<item name="28" xsi:type="string">payment/paypal_billing_agreement/title</item>
<item name="29" xsi:type="string">payment/paypal_billing_agreement/active</item>
<item name="30" xsi:type="string">payment/braintree/title</item>
<item name="31" xsi:type="string">payment/braintree/active</item>
<item name="32" xsi:type="string">payment/braintree_paypal/title</item>
<item name="33" xsi:type="string">payment/braintree_paypal/active</item>
<item name="34" xsi:type="string">analytics/general/vertical</item>
</argument>
</arguments>
</type>
Expand Down
1 change: 1 addition & 0 deletions app/code/Magento/AsynchronousOperations/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
},
"require": {
"magento/framework": "*",
"magento/framework-message-queue": "*",
"magento/framework-bulk": "*",
"magento/module-authorization": "*",
"magento/module-backend": "*",
Expand Down

This file was deleted.

This file was deleted.

83 changes: 0 additions & 83 deletions app/code/Magento/Authorizenet/Block/Transparent/Iframe.php

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1861c47

Please sign in to comment.