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\Block\Adminhtml\Product\Edit\Button;

use Magento\Catalog\Block\Adminhtml\Product\Edit\Button\Save;

class SaveTest extends GenericTest
{
    public function testGetButtonData()
    {
        $this->productMock->expects($this->once())
            ->method('isReadonly')
            ->willReturn(false);

        $this->assertNotEmpty($this->getModel(Save::class)->getButtonData());
    }

    public function testGetButtonDataToBeEmpty()
    {
        $this->productMock->expects($this->once())
            ->method('isReadonly')
            ->willReturn(true);

        $this->assertSame([], $this->getModel(Save::class)->getButtonData());
    }
}
 ?>

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\Block\Adminhtml\Product\Edit\Button;

use Magento\Catalog\Block\Adminhtml\Product\Edit\Button\Save;

class SaveTest extends GenericTest
{
    public function testGetButtonData()
    {
        $this->productMock->expects($this->once())
            ->method('isReadonly')
            ->willReturn(false);

        $this->assertNotEmpty($this->getModel(Save::class)->getButtonData());
    }

    public function testGetButtonDataToBeEmpty()
    {
        $this->productMock->expects($this->once())
            ->method('isReadonly')
            ->willReturn(true);

        $this->assertSame([], $this->getModel(Save::class)->getButtonData());
    }
}

Function Calls

None

Variables

None

Stats

MD5 4b24b5a3511fdc56498eda54ba53dc80
Eval Count 0
Decode Time 105 ms