MNT Update embed shortcode unit test

This commit is contained in:
Steve Boyd 2021-06-29 12:53:48 +12:00
parent ac35e94a19
commit c2026d06bf
1 changed files with 4 additions and 1 deletions

View File

@ -1703,7 +1703,10 @@ class SiteTreeTest extends SapphireTest
$cache = $method->invokeArgs($provider, []);
$method = $reflector->getMethod('deriveCacheKey');
$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
foreach ([Versioned::DRAFT, Versioned::LIVE] as $stage) {