Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
ConfigTest Class Reference
Inheritance diagram for ConfigTest:

Public Member Functions

 testGetVclFile ()
 

Detailed Description

Definition at line 8 of file ConfigTest.php.

Member Function Documentation

◆ testGetVclFile()

testGetVclFile ( )

@magentoConfigFixture default/system/full_page_cache/varnish/backend_host example.com @magentoConfigFixture default/system/full_page_cache/varnish/backend_port 8080 @magentoConfigFixture default/system/full_page_cache/varnish/grace_period 1234 @magentoConfigFixture default/system/full_page_cache/varnish/access_list 127.0.0.1,192.168.0.1,127.0.0.2 @magentoConfigFixture current_store design/theme/ua_regexp {"_":{"regexp":"\/firefox\/i","value":"Magento\/blank"}} @magentoAppIsolation enabled

Definition at line 86 of file ConfigTest.php.

87  {
88  $result = $this->config->getVclFile(Config::VARNISH_5_CONFIGURATION_PATH);
89  $this->assertEquals(file_get_contents(__DIR__ . '/_files/result.vcl'), $result);
90  }
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition: _bootstrap.php:60

The documentation for this class was generated from the following file: