12 class DataTest extends \PHPUnit\Framework\TestCase
26 $this->filesystem = $this->getMockBuilder(\
Magento\Framework\Filesystem::class)->disableOriginalConstructor()
29 $this->filesystem->expects($this->any())
30 ->method(
'getDirectoryRead')
31 ->will($this->returnCallback(
function (
$code) {
32 $dir = $this->getMockForAbstractClass(\
Magento\Framework\
Filesystem\Directory\ReadInterface::class);
33 $dir->expects($this->any())
34 ->method(
'getAbsolutePath')
35 ->will($this->returnCallback(
function (
$path) use (
$code) {
42 $this->helper = (new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this))
44 \
Magento\Backup\Helper\Data::class,
45 [
'filesystem' => $this->filesystem]
63 $this->helper->getBackupIgnorePaths()
81 $this->helper->getRollbackIgnorePaths()
testGetRollbackIgnorePaths()
testGetBackupIgnorePaths()