You are here

function RdfUiTestCase::testPrefixNotification in RDF Extensions 7.2

File

rdfui/rdfui.test, line 22

Class

RdfUiTestCase
Test RDF Mapping UI.

Code

function testPrefixNotification() {
  $edit = array();
  $field_settings_form = 'admin/structure/types/manage/page/fields/body';
  $edit['rdf_body_predicates'] = 'foo:bar';
  $this
    ->drupalPost($field_settings_form, $edit, t('Save settings'));
  $this
    ->assertText(t('Term foo:bar uses unmapped prefix foo.'), t('Warning displayed for unbound prefix.'));
}