You are here

protected function VocabularyImportTestCase::importVocabulary in RDF Extensions 7.2

1 call to VocabularyImportTestCase::importVocabulary()
VocabularyImportTestCase::testImport in evoc/evoc.test
Functional test for vocabulary import.

File

evoc/evoc.test, line 67
Tests Evoc functionality.

Class

VocabularyImportTestCase
@file Tests Evoc functionality.

Code

protected function importVocabulary($format) {
  $absolute_url = $this
    ->getAbsoluteUrl("evoc_test/vocabulary_{$format}");
  $this->vocab_uri[$format] = "{$absolute_url}#";
  $this->prefix[$format] = "test_{$format}";
  $this->edit = array(
    'prefix' => $this->prefix[$format],
    'ns_uri' => $this->vocab_uri[$format],
  );
  $user = $this
    ->drupalCreateUser(array(
    'administer content types',
  ));
  $this
    ->drupalLogin($user);
  $this
    ->drupalPost('evoc/import', $this->edit, t('Submit'));
}