コード例 #1
0
 /**
  * @param string $path
  * @param string $expectedException
  *
  * @dataProvider setDataByPathWrongDepthDataProvider
  */
 public function testSetDataByPathWrongDepth($path, $expectedException)
 {
     $expectedException = 'Allowed depth of configuration is 3 (<section>/<group>/<field>). ' . $expectedException;
     $this->setExpectedException('\\UnexpectedValueException', $expectedException);
     $value = 'value';
     $this->_model->setDataByPath($path, $value);
 }
コード例 #2
0
 public function tearDown()
 {
     if (!empty($this->currentCustomerId)) {
         foreach ($this->currentCustomerId as $customerId) {
             $serviceInfo = ['rest' => ['resourcePath' => self::RESOURCE_PATH . '/' . $customerId, 'httpMethod' => \Magento\Framework\Webapi\Rest\Request::HTTP_METHOD_DELETE], 'soap' => ['service' => CustomerRepositoryTest::SERVICE_NAME, 'serviceVersion' => self::SERVICE_VERSION, 'operation' => CustomerRepositoryTest::SERVICE_NAME . 'DeleteById']];
             $response = $this->_webApiCall($serviceInfo, ['customerId' => $customerId]);
             $this->assertTrue($response);
         }
     }
     $this->config->setDataByPath(SecurityConfig::XML_PATH_FRONTED_AREA . SecurityConfig::XML_PATH_LIMIT_PASSWORD_RESET_REQUESTS_METHOD, $this->configValue);
     $this->config->save();
     unset($this->accountManagement);
 }