mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 17:27:36 +00:00
40 lines
914 B
PHP
40 lines
914 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Magento\Backend\Test\Unit\Console\Command;
|
|
|
|
use Magento\Backend\Console\Command\AbstractCacheManageCommand;
|
|
use Magento\Framework\App\Cache\Manager;
|
|
use PHPUnit\Framework\MockObject\MockObject;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
abstract class AbstractCacheCommandTest extends TestCase
|
|
{
|
|
/**
|
|
* @var Manager|MockObject
|
|
*/
|
|
protected $cacheManagerMock;
|
|
|
|
/**
|
|
* @var AbstractCacheManageCommand
|
|
*/
|
|
protected $command;
|
|
|
|
protected function setUp(): void
|
|
{
|
|
$this->cacheManagerMock = $this->createMock(Manager::class);
|
|
}
|
|
|
|
/**
|
|
* Formats expected output for testExecute data providers
|
|
*
|
|
* @param array $types
|
|
* @return string
|
|
*/
|
|
abstract public function getExpectedExecutionOutput(array $types);
|
|
}
|