+ * Asserts that the comment subject field is visible for a node type.
+ *
+ * @param string $id
+ * The entity form display ID.
+ */
+ protected function assertSubjectVisible($id) {
+ $component = EntityFormDisplay::load($id)->getComponent('subject');
+ $this->assertInternalType('array', $component);
+ $this->assertSame('string_textfield', $component['type']);
+ $this->assertSame(10, $component['weight']);
+ }
+
+ /**
+ * Asserts that the comment subject field is not visible for a node type.