You are here

public function CurrencyViewsHandlerFilterWebTestCase::testCurrencyAmountViewsHandlerField in Currency 7.2

Tests CurrencyAmountViewsHandlerField.

File

currency/tests/CurrencyViewsHandlerFilterWebTestCase.test, line 127
Contains class CurrencyViewsHandlerFilterWebTestCase.

Class

CurrencyViewsHandlerFilterWebTestCase
Tests CurrencyViewsHandlerFilter.

Code

public function testCurrencyAmountViewsHandlerField() {
  $view = $this
    ->getBasicView();
  $view
    ->save();
  $account = $this
    ->drupalCreateUser(array(
    'administer views',
  ));
  $this
    ->drupalLogin($account);
  $this
    ->drupalGet('admin/structure/views/nojs/config-item/test_view/default/filter/currency_code');
  foreach (currency_options() as $option) {
    $this
      ->assertText($option);
  }
}