Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DataTest.php
Go to the documentation of this file.
1 <?php
11 
16 class DataTest extends \PHPUnit\Framework\TestCase
17 {
21  protected $helper;
22 
26  protected $updateLayoutMock;
27 
31  protected $contextMock;
32 
36  protected $viewMock;
37 
38  public function testMaxAgeCache()
39  {
40  // one year
41  $age = 365 * 24 * 60 * 60;
42  $this->assertEquals($age, \Magento\PageCache\Helper\Data::PRIVATE_MAX_AGE_CACHE);
43  }
44 }