Beispiel #1
0
 public function testHasOption()
 {
     $appStateProperty = new \ReflectionProperty('Magento\\Framework\\Session\\Config', 'options');
     $appStateProperty->setAccessible(true);
     $original = $appStateProperty->getValue($this->config);
     $valueForTest = array('session.test' => 'test2');
     $appStateProperty->setValue($this->config, $valueForTest);
     $this->assertTrue($this->config->hasOption('test'));
     $this->assertFalse($this->config->hasOption('no_set'));
     $appStateProperty->setValue($this->config, $original);
 }