We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 558b8cf commit 0d0e683Copy full SHA for 0d0e683
lib/internal/Magento/Framework/Pricing/Test/Unit/Render/PriceBoxTest.php
@@ -241,4 +241,16 @@ public function testGetRendererPool()
241
{
242
$this->assertEquals($this->rendererPool, $this->model->getRendererPool());
243
}
244
+
245
+ /**
246
+ * This tests the protected method getCacheLifeTime()
247
+ */
248
+ public function testCacheLifeTime()
249
+ {
250
+ $reflectionClass = new \ReflectionClass(get_class($this->model));
251
+ $methodReflection = $reflectionClass->getMethod('getCacheLifetime');
252
+ $methodReflection->setAccessible(true);
253
+ $cacheLifeTime = $methodReflection->invoke($this->model);
254
+ $this->assertNull($cacheLifeTime, 'Expected null cache lifetime');
255
+ }
256
0 commit comments