public function RuntimeTest::testGetAhDatabaseRole in Acquia Search 3.x
Tests getAhDatabaseRole.
@dataProvider getAhDatabaseRoleDataProvider
@covers \Drupal\acquia_search\Helper\Runtime::getAhDatabaseRole
File
- tests/
src/ Unit/ Helper/ RuntimeTest.php, line 215
Class
- RuntimeTest
- @coversDefaultClass \Drupal\acquia_search\Helper\Runtime @group Acquia Search Solr
Namespace
Drupal\Tests\acquia_search\Unit\HelperCode
public function testGetAhDatabaseRole($options, $connection_ifno, $expected) {
$role = Runtime::getAhDatabaseRole($options, $connection_ifno);
$this
->assertEquals($expected, $role);
}