class DatabaseBackendFactoryTest extends UnitTestCase
{ /**
* @covers ::__construct
* @covers ::get
* @dataProvider getProvider
*/
public function testGet(array
$settings,
$expected_max_rows_foo,
$expected_max_rows_bar) { $database_backend_factory =
new DatabaseBackendFactory( $this->
prophesize(Connection::
class)->
reveal(),
$this->
prophesize(CacheTagsChecksumInterface::
class)->
reveal(),
new Settings($settings) );
$this->
assertSame($expected_max_rows_foo,
$database_backend_factory->
get('foo'
)->
getMaxRows());
$this->
assertSame($expected_max_rows_bar,
$database_backend_factory->
get('bar'
)->
getMaxRows());
} public function getProvider() { return [