Esempio n. 1
0
 /**
  * Overrides MollomDrupalTest::__construct().
  */
 public function __construct(ConfigFactory $config_factory, ClientInterface $http_client)
 {
     // Replace server/endpoint with our local fake server.
     $server = \Drupal::request()->getHttpHost() . '/mollom-test/rest';
     $this->server = $server;
     parent::__construct($config_factory, $http_client);
 }
Esempio n. 2
0
 /**
  * Overrides MollomDrupalTest::__construct().
  */
 public function __construct(ConfigFactory $config_factory, ClientInterface $http_client)
 {
     parent::__construct($config_factory, $http_client);
     $this->originalServer = $this->server;
     $this->configuration_map['server'] = 'test_mode.invalid.api_endpoint';
     $this->saveConfiguration('server', 'fake-host');
 }