mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #2672 from creative-commoners/pulls/4.8/duplicate-embeds
MNT Update embed shortcode unit test
This commit is contained in:
commit
c505091d93
@ -1703,7 +1703,10 @@ class SiteTreeTest extends SapphireTest
|
|||||||
$cache = $method->invokeArgs($provider, []);
|
$cache = $method->invokeArgs($provider, []);
|
||||||
$method = $reflector->getMethod('deriveCacheKey');
|
$method = $reflector->getMethod('deriveCacheKey');
|
||||||
$method->setAccessible(true);
|
$method->setAccessible(true);
|
||||||
$key = $method->invokeArgs($provider, [$url]);
|
$class = 'leftAlone ss-htmleditorfield-file embed';
|
||||||
|
$width = '480';
|
||||||
|
$height = '270';
|
||||||
|
$key = $method->invokeArgs($provider, [$url, $class, $width, $height]);
|
||||||
|
|
||||||
// Set cache (VersionedCacheAdapter) on both DRAFT and LIVE
|
// Set cache (VersionedCacheAdapter) on both DRAFT and LIVE
|
||||||
foreach ([Versioned::DRAFT, Versioned::LIVE] as $stage) {
|
foreach ([Versioned::DRAFT, Versioned::LIVE] as $stage) {
|
||||||
|
Loading…
Reference in New Issue
Block a user