Skip to content

Commit 2407845

Browse files
committed
Remove forced setting of cache_lifetime to false in constructor and set default cache_lifetime to 3600 Unit test.
1 parent 53c7321 commit 2407845

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

app/code/Magento/Theme/Test/Unit/Block/Html/FooterTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,18 @@ public function testGetIdentities()
3030
$this->block->getIdentities()
3131
);
3232
}
33+
34+
/**
35+
* Check Footer block has cache lifetime.
36+
*
37+
* @throws \ReflectionException
38+
* @return void
39+
*/
40+
public function testGetCacheLifetime()
41+
{
42+
$reflection = new \ReflectionClass($this->block);
43+
$method = $reflection->getMethod('getCacheLifetime');
44+
$method->setAccessible(true);
45+
$this->assertEquals(3600, $method->invoke($this->block));
46+
}
3347
}

0 commit comments

Comments
 (0)