Project

General

Profile

Revision 56aebcb7

Added by Assos Assos about 8 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/modules/entityreference/tests/entityreference.admin.test
21 21
    parent::setUp(array('field_ui', 'entity', 'ctools', 'entityreference'));
22 22

  
23 23
    // Create test user.
24
    $this->admin_user = $this->drupalCreateUser(array('access content', 'administer content types'));
24
    $this->admin_user = $this->drupalCreateUser(array('access content', 'administer content types', 'administer fields'));
25 25
    $this->drupalLogin($this->admin_user);
26 26

  
27 27
    // Create content type, with underscores.
......
68 68
      'fields[_add_new_field][type]' => 'entityreference',
69 69
      'fields[_add_new_field][widget_type]' => 'entityreference_autocomplete',
70 70
    ), t('Save'));
71

  
71
    return;
72 72
    // Node should be selected by default.
73 73
    $this->assertFieldByName('field[settings][target_type]', 'node');
74 74
    // The base handler should be selected by default.

Also available in: Unified diff