You are here

public function QuickEditLoadingTest::testDisplayOptions in Quick Edit 7

Tests that Quick Edit doesn't make fields rendered with display options editable.

File

./quickedit.test, line 432
Tests loading of Quick Edit and lazy-loading of in-place editors.

Class

QuickEditLoadingTest
Tests loading of Quick Edit and lazy-loading of in-place editors.

Code

public function testDisplayOptions() {
  $node = node_load('1');
  $display_settings = array(
    'label' => 'inline',
  );
  $build = field_view_field('node', $node, 'body', $display_settings);
  $output = drupal_render($build);
  $this
    ->assertFalse(strpos($output, 'data-quickedit-field-id'), 'data-quickedit-field-id attribute not added when rendering field using dynamic display options.');
}