Definition at line 12 of file ConfigFixtureTest.php.
 
◆ setUp()
Definition at line 19 of file ConfigFixtureTest.php.
   21         $this->_object = $this->createPartialMock(
    22             \
Magento\TestFramework\Annotation\ConfigFixture::class,
    23             [
'_getConfigValue', 
'_setConfigValue']
 
 
 
◆ testCurrentStoreConfig()
      
        
          | testCurrentStoreConfig | ( |  | ) |  | 
      
 
@magentoConfigFixture current_store dev/restrict/allow_ips 192.168.0.1 
Definition at line 65 of file ConfigFixtureTest.php.
   67         $this->_object->expects(
    72             'dev/restrict/allow_ips',
    75             $this->returnValue(
'127.0.0.1')
    77         $this->_object->expects(
    82             'dev/restrict/allow_ips',
    86         $this->_object->startTest($this);
    88         $this->_object->expects(
    93             'dev/restrict/allow_ips',
    97         $this->_object->endTest($this);
  
 
◆ testGlobalConfig()
@magentoConfigFixture current_store web/unsecure/base_url http://example.com/ 
Definition at line 30 of file ConfigFixtureTest.php.
   32         $this->_object->expects(
    37             'web/unsecure/base_url'    39             $this->returnValue(
'http://localhost/')
    41         $this->_object->expects(
    46             'web/unsecure/base_url',
    49         $this->_object->startTest($this);
    51         $this->_object->expects(
    56             'web/unsecure/base_url',
    59         $this->_object->endTest($this);
  
 
◆ testInitStoreAfter()
@magentoConfigFixture current_store web/unsecure/base_url http://example.com/ 
Definition at line 148 of file ConfigFixtureTest.php.
  150         $this->_object->startTest($this);
   151         $this->_object->expects(
   156             'web/unsecure/base_url'   158             $this->returnValue(
'http://localhost/')
   160         $this->_object->expects(
   165             'web/unsecure/base_url',
   166             'http://example.com/'   168         $this->_object->initStoreAfter();
  
 
◆ testInitStoreAfterOfScope()
      
        
          | testInitStoreAfterOfScope | ( |  | ) |  | 
      
 
Definition at line 138 of file ConfigFixtureTest.php.
  140         $this->_object->expects($this->never())->method(
'_getConfigValue');
   141         $this->_object->expects($this->never())->method(
'_setConfigValue');
   142         $this->_object->initStoreAfter();
  
 
◆ testSpecificStoreConfig()
      
        
          | testSpecificStoreConfig | ( |  | ) |  | 
      
 
@magentoConfigFixture admin_store dev/restrict/allow_ips 192.168.0.2 
Definition at line 103 of file ConfigFixtureTest.php.
  105         $this->_object->expects(
   110             'dev/restrict/allow_ips',
   113             $this->returnValue(
'192.168.0.1')
   115         $this->_object->expects(
   120             'dev/restrict/allow_ips',
   124         $this->_object->startTest($this);
   126         $this->_object->expects(
   131             'dev/restrict/allow_ips',
   135         $this->_object->endTest($this);
  
 
◆ $_object
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/framework/tests/unit/testsuite/Magento/Test/Annotation/ConfigFixtureTest.php