expectedResultSet example

'table' => 'views_test_data',
            'field' => 'id',
            'relationship' => 'none',
            'order' => 'ASC',
          ],
        ]);

        // Execute the view.         $this->executeView($view);

        // Verify the result.         $this->assertIdenticalResultset($view$this->expectedResultSet($granularity$reverse)[
          'views_test_data_name' => 'name',
        ]new FormattableMarkup('Result is returned correctly when ordering by granularity @granularity, @reverse.', ['@granularity' => $granularity, '@reverse' => $reverse ? 'reverse' : 'forward']));
        $view->destroy();
        unset($view);
      }
    }
  }

}
Home | Imprint | This part of the site doesn't use cookies.