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-catalog-url-rewrite
Test
Unit
Model
UrlRewriteBunchReplacerTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\CatalogUrlRewrite\Test\Unit\Model
;
7
8
use
Magento\CatalogUrlRewrite\Model\UrlRewriteBunchReplacer
;
9
use
Magento\UrlRewrite\Model\UrlPersistInterface
;
10
11
class
UrlRewriteBunchReplacerTest
extends
\PHPUnit\Framework\TestCase
12
{
16
private
$urlPersistMock;
17
21
private
$urlRewriteBunchReplacer;
22
23
public
function
setUp
()
24
{
25
$this->urlPersistMock = $this->createMock(UrlPersistInterface::class);
26
$this->urlRewriteBunchReplacer =
new
UrlRewriteBunchReplacer
(
27
$this->urlPersistMock
28
);
29
}
30
31
public
function
testDoBunchReplace
()
32
{
33
$urls
= [[1], [2]];
34
$this->urlPersistMock->expects($this->exactly(2))
35
->method(
'replace'
)
36
->withConsecutive([[[1]]], [[[2]]]);
37
$this->urlRewriteBunchReplacer->doBunchReplace(
$urls
, 1);
38
}
39
}
Magento\CatalogUrlRewrite\Test\Unit\Model\UrlRewriteBunchReplacerTest\testDoBunchReplace
testDoBunchReplace()
Definition:
UrlRewriteBunchReplacerTest.php:31
Magento\UrlRewrite\Model\UrlPersistInterface
Definition:
UrlPersistInterface.php:13
Magento\CatalogUrlRewrite\Test\Unit\Model\UrlRewriteBunchReplacerTest
Definition:
UrlRewriteBunchReplacerTest.php:11
$urls
$urls
Definition:
url_duplicate_message.phtml:8
Magento\CatalogUrlRewrite\Model\UrlRewriteBunchReplacer
Definition:
UrlRewriteBunchReplacer.php:10
Magento\CatalogUrlRewrite\Test\Unit\Model\UrlRewriteBunchReplacerTest\setUp
setUp()
Definition:
UrlRewriteBunchReplacerTest.php:23
Magento\CatalogUrlRewrite\Test\Unit\Model