From c2026d06bf9401996c51b165858bcc46824d9f6e Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 29 Jun 2021 12:53:48 +1200 Subject: [PATCH] MNT Update embed shortcode unit test --- tests/php/Model/SiteTreeTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/php/Model/SiteTreeTest.php b/tests/php/Model/SiteTreeTest.php index 9a63f842..aa37f24a 100644 --- a/tests/php/Model/SiteTreeTest.php +++ b/tests/php/Model/SiteTreeTest.php @@ -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) {