'seoPathInfo' => 'fancy-override',
'isModified' => true,
],
];
$this->seoUrlPersister->
updateSeoUrls($context, 'foo.route',
array_column($seoUrlUpdates, 'foreignKey'
),
$seoUrlUpdates,
$this->salesChannel
);
$seoUrls =
$this->seoUrlRepository->
search(new Criteria(), Context::
createDefaultContext())->
getEntities();
static::
assertCount(2,
$seoUrls);
$canon =
$seoUrls->
filterByProperty('isCanonical', true
)->
first();
static::
assertNotNull($canon);
static::
assertTrue($canon->
getIsModified());
static::
assertSame('fancy-override',
$canon->
getSeoPathInfo());
$seoUrlUpdates =
[ [ 'foreignKey' =>
$fk,
'pathInfo' => 'normal/path',
'seoPathInfo' => 'no-effect',
],
];
$this->seoUrlPersister->
updateSeoUrls($context, 'foo.route',
array_column($seoUrlUpdates, 'foreignKey'
),
$seoUrlUpdates,
$this->salesChannel
);