You are here

protected function ContentLanguageAccessTestCase::createContents in Content Language Access 6

Same name and namespace in other branches
  1. 7 content_language_access.test \ContentLanguageAccessTestCase::createContents()

Creates a content for each language for the tests.

1 call to ContentLanguageAccessTestCase::createContents()
ContentLanguageAccessTestCase::setUp in ./content_language_access.test
Implements setUp().

File

./content_language_access.test, line 68
Test suite for content language access module

Class

ContentLanguageAccessTestCase
@file Test suite for content language access module

Code

protected function createContents() {
  $this
    ->drupalLogin($this->admin_user);
  $languages = $this
    ->getLanguageList();
  foreach ($languages as $language_key => $language) {
    $settings = array();
    $settings['title'] = 'Test ' . $language->name;
    $settings['language'] = $language_key;
    $this->nodes[$language_key] = $this
      ->drupalCreateNode($settings);
  }
}