getMaxRows example


  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 [
      'default' => [
        [],
        DatabaseBackend::DEFAULT_MAX_ROWS,
        DatabaseBackend::DEFAULT_MAX_ROWS,
      ],
      'default overridden' => [
        [
Home | Imprint | This part of the site doesn't use cookies.