Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * Copyright Magento, Inc. All rights reserved. * See COPYING.txt for license ..
Decoded Output download
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\Catalog\Test\Unit\Ui\DataProvider\Product\Related;
use Magento\Catalog\Ui\DataProvider\Product\Related\UpSellDataProvider;
class UpSellDataProviderTest extends AbstractDataProviderTestCase
{
/**
* {@inheritdoc}
*/
protected function getModel()
{
return $this->objectManager->getObject(UpSellDataProvider::class, [
'name' => 'testName',
'primaryFieldName' => 'testPrimaryFieldName',
'requestFieldName' => 'testRequestFieldName',
'collectionFactory' => $this->collectionFactoryMock,
'request' => $this->requestMock,
'productRepository' => $this->productRepositoryMock,
'productLinkRepository' => $this->productLinkRepositoryMock,
'addFieldStrategies' => [],
'addFilterStrategies' => [],
'meta' => [],
'data' => []
]);
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\Catalog\Test\Unit\Ui\DataProvider\Product\Related;
use Magento\Catalog\Ui\DataProvider\Product\Related\UpSellDataProvider;
class UpSellDataProviderTest extends AbstractDataProviderTestCase
{
/**
* {@inheritdoc}
*/
protected function getModel()
{
return $this->objectManager->getObject(UpSellDataProvider::class, [
'name' => 'testName',
'primaryFieldName' => 'testPrimaryFieldName',
'requestFieldName' => 'testRequestFieldName',
'collectionFactory' => $this->collectionFactoryMock,
'request' => $this->requestMock,
'productRepository' => $this->productRepositoryMock,
'productLinkRepository' => $this->productLinkRepositoryMock,
'addFieldStrategies' => [],
'addFilterStrategies' => [],
'meta' => [],
'data' => []
]);
}
}
Function Calls
None |
Stats
MD5 | ba31d1747908c8495104fd06bf26b8f3 |
Eval Count | 0 |
Decode Time | 93 ms |