Merge pull request #2672 from creative-commoners/pulls/4.8/duplicate-embeds

MNT Update embed shortcode unit test
This commit is contained in:
Steve Boyd 2021-07-01 16:56:16 +12:00 committed by GitHub
commit c505091d93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {