You are here

protected function CurrencyAmountViewsHandlerFieldWebTestCase::getBasicView in Currency 7.2

Overrides parent::getBasicView().

Overrides ViewsSqlTest::getBasicView

1 call to CurrencyAmountViewsHandlerFieldWebTestCase::getBasicView()
CurrencyAmountViewsHandlerFieldWebTestCase::testCurrencyAmountViewsHandlerField in currency/tests/CurrencyAmountViewsHandlerFieldWebTestCase.test
Tests CurrencyAmountViewsHandlerField.

File

currency/tests/CurrencyAmountViewsHandlerFieldWebTestCase.test, line 145
Contains class CurrencyAmountViewsHandlerFieldWebTestCase.

Class

CurrencyAmountViewsHandlerFieldWebTestCase
Tests CurrencyAmountViewsHandlerField.

Code

protected function getBasicView() {
  views_include('view');

  // Create the basic view.
  $view = new view();
  $view->name = 'test_view';
  $view
    ->add_display('default');
  $view->base_table = 'views_test';

  // Set up the fields we need.
  $display = $view
    ->new_display('default', 'Master', 'default');
  $display
    ->override_option('fields', array(
    'currency_code' => array(
      'id' => 'currency_code',
      'table' => 'views_test',
      'field' => 'currency_code',
      'relationship' => 'none',
    ),
    'amount_currency_code_definition' => array(
      'id' => 'amount_currency_code_definition',
      'table' => 'views_test',
      'field' => 'amount_currency_code_definition',
      'relationship' => 'none',
    ),
    'amount_currency_code_field_definition' => array(
      'id' => 'amount_currency_code_field_definition',
      'table' => 'views_test',
      'field' => 'amount_currency_code_field_definition',
      'relationship' => 'none',
    ),
    'amount_currency_code_field_table_definition' => array(
      'id' => 'amount_currency_code_field_table_definition',
      'table' => 'views_test',
      'field' => 'amount_currency_code_field_table_definition',
      'relationship' => 'none',
    ),
    'amount_currency_undefined' => array(
      'id' => 'amount_currency_undefined',
      'table' => 'views_test',
      'field' => 'amount_currency_undefined',
      'relationship' => 'none',
    ),
  ));
  return $view;
}