You are here

function i18nSelectTestCase::assertContent in Internationalization 7

Check some nodes are displayed, some are not

1 call to i18nSelectTestCase::assertContent()
i18nSelectTestCase::testIi18nSelect in i18n_select/i18n_select.test

File

i18n_select/i18n_select.test, line 77
Test language selection modes

Class

i18nSelectTestCase
@file Test language selection modes

Code

function assertContent($display, $hide = array()) {
  $languages = language_list();
  foreach ($display as $node) {
    $this
      ->assertText($node->title, 'Content displayed for ' . i18n_language_name($node->language));
  }
  foreach ($hide as $node) {
    $this
      ->assertNoText($node->title, 'Content not displayed for ' . i18n_language_name($node->language));
  }
}