You are here

protected function AcquiaSearchOverrideTest::assertGetUpdateQueryNoException in Acquia Search 2.x

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 tests/src/Kernel/AcquiaSearchOverrideTest.php
Tests Acquia Dev hosting environment detected.
AcquiaSearchOverrideTest::testAcquiaHostingProdEnvironmentDetectedWithProdFlag in tests/src/Kernel/AcquiaSearchOverrideTest.php
Tests prod environment detection.
AcquiaSearchOverrideTest::testAcquiaSearchV3CoreDetected in tests/src/Kernel/AcquiaSearchOverrideTest.php
Tests Acquia Dev hosting environment and search v3 core detected.
AcquiaSearchOverrideTest::testApacheSolrOverrideWhenCoreWithDbNameNotAvailable in tests/src/Kernel/AcquiaSearchOverrideTest.php
Test core override when a core with db name is unavailable.

File

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');
  }
}