testMakeUneditableDisablesPlugins() {
    const editableField = new FieldConstructor('testField');
    const plugin = new TestPlugin();

    let calls = 0;
    plugin.disable = (field) => {
      assertEquals(editableField, field);
      assertTrue(field.isUneditable());
      calls++;
    };

    editableField.registerPlugin(plugin);
    editableField.makeEditable();

    assertEquals(0, calls);
    editableField.makeUneditable();

    assertEquals(1, calls);

    editableField.dispose();
  }
Tests that plugins are disabled when the field is made uneditable.