You are here

protected function AcquiaSearchOverrideTest::assertGetUpdateQueryNoException in Acquia Connector 8

Helper method to test SearchApiSolrAcquiaConnector::getUpdateQuery.

Asserts if the Solr Connector getUpdateQuery() method doesn't throw an exception.

Parameters

\Drupal\acquia_search\Plugin\SolrConnector\SearchApiSolrAcquiaConnector $solr_connector: SearchApiSolrAcquiaConnector.

4 calls to AcquiaSearchOverrideTest::assertGetUpdateQueryNoException()
AcquiaSearchOverrideTest::testAcquiaHostingEnvironmentDetected in acquia_search/tests/src/Kernel/AcquiaSearchOverrideTest.php
Tests Acquia Dev hosting environment detected.
AcquiaSearchOverrideTest::testAcquiaHostingProdEnvironmentDetectedWithProdFlag in acquia_search/tests/src/Kernel/AcquiaSearchOverrideTest.php
Tests prod environment detection.
AcquiaSearchOverrideTest::testAcquiaSearchV3CoreDetected in acquia_search/tests/src/Kernel/AcquiaSearchOverrideTest.php
Tests Acquia Dev hosting environment and search v3 core detected.
AcquiaSearchOverrideTest::testApacheSolrOverrideWhenCoreWithDbNameNotAvailable in acquia_search/tests/src/Kernel/AcquiaSearchOverrideTest.php
Test core override when a core with db name is unavailable.

File

acquia_search/tests/src/Kernel/AcquiaSearchOverrideTest.php, line 259

Class

AcquiaSearchOverrideTest
Tests for Acquia Search override cores.

Namespace

Drupal\Tests\acquia_search\Kernel

Code

protected function assertGetUpdateQueryNoException(SearchApiSolrAcquiaConnector $solr_connector) {
  try {
    $solr_connector
      ->getUpdateQuery();
  } catch (\Exception $e) {
    $this
      ->fail('getUpdateQuery() should not throw exception');
  }
}