Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
c
d
e
f
g
h
i
m
p
r
s
t
u
+
Functions
_
c
d
e
f
g
h
i
m
p
r
s
t
u
Variables
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
+
Functions
_
c
d
e
f
g
m
o
r
s
t
v
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
vendor
magento
module-backup
Test
Unit
Cron
SystemBackupTest.php
Go to the documentation of this file.
1
<?php
7
declare(strict_types=1);
8
9
namespace
Magento\Backup\Test\Unit\Cron
;
10
11
use
Magento\Backup\Cron\SystemBackup
;
12
use PHPUnit\Framework\TestCase;
13
use
Magento\Backup\Helper\Data
as Helper;
14
use
Magento\Framework\TestFramework\Unit\Helper\ObjectManager
;
15
16
class
SystemBackupTest
extends
TestCase
17
{
21
private
$helperMock;
22
26
private
$cron;
27
31
protected
function
setUp
()
32
{
33
$objectManager
=
new
ObjectManager
($this);
34
$this->helperMock = $this->getMockBuilder(Helper::class)->disableOriginalConstructor()->getMock();
35
$this->cron =
$objectManager
->getObject(SystemBackup::class, [
'backupData'
=> $this->helperMock]);
36
}
37
41
public
function
testDisabled
()
42
{
43
$this->helperMock->expects($this->any())->method(
'isEnabled'
)->willReturn(
false
);
44
$this->cron->execute();
45
}
46
}
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Backup\Test\Unit\Cron\SystemBackupTest
Definition:
SystemBackupTest.php:16
Magento\Backup\Test\Unit\Cron\SystemBackupTest\setUp
setUp()
Definition:
SystemBackupTest.php:31
Magento\Backup\Test\Unit\Cron
Definition:
SystemBackupTest.php:9
Magento\Backup\Test\Unit\Cron\SystemBackupTest\testDisabled
testDisabled()
Definition:
SystemBackupTest.php:41
Magento\Framework\TestFramework\Unit\Helper\ObjectManager
Definition:
ObjectManager.php:13
Magento\Backup\Helper\Data
Definition:
Data.php:20
Magento\Backup\Cron\SystemBackup
Definition:
SystemBackup.php:14