You are here

public function ConditionalFieldsUITestCase::testDependenciesOverview in Conditional Fields 7.3

Ensures that the administration pages are viewable.

File

tests/conditional_fields.test, line 281
Test Conditional Fields functionality and UI.

Class

ConditionalFieldsUITestCase

Code

public function testDependenciesOverview() {
  $dependee = field_read_instance('node', 'dependee', 'conditional_fields_test');
  $this
    ->drupalGet('admin/structure');
  $this
    ->clickLink(t('Field dependencies'));
  $this
    ->clickLink(t('Node'));
  $this
    ->drupalGet('admin/structure/types/manage/conditional-fields-test');
  $this
    ->clickLink(t('Manage dependencies'));
  $this
    ->assertFieldByName('dependee', $dependee['id'], 'The dependee selection field is in the content type dependencies page.');
  $this
    ->assertFieldByName('dependent', $dependee['id'], 'The dependent selection field is in the content type dependencies page.');
}