Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setEndpointUrl example
'status' => TRUE,
]
)
->
removeComponent
(
'thumbnail'
)
->
setComponent
(
$source_field
->
getName
(
)
,
[
'type' => 'oembed',
'settings' =>
$formatter_settings
,
]
)
->
save
(
)
;
$this
->
hijackProviderEndpoints
(
)
;
ResourceController::
setResourceUrl
(
$url
,
$this
->
getFixturesDirectory
(
)
. '/' .
$resource_url
)
;
UrlResolver::
setEndpointUrl
(
$url
,
$resource_url
)
;
$entity
= Media::
create
(
[
'bundle' =>
$media_type
->
id
(
)
,
$source_field
->
getName
(
)
=>
$url
,
]
)
;
$entity
->
save
(
)
;
$this
->
drupalGet
(
$entity
->
toUrl
(
)
)
;
$assert
=
$this
->
assertSession
(
)
;
$assert
->
statusCodeEquals
(
200
)
;
foreach
(
$selectors
as
$selector
=>
$attributes
)
{