// Ensure that data-align attribute is set by default when media is inserted
// while filter_align is enabled.
FilterFormat::load('test_format') ->setFilterConfig('filter_align', ['status' => TRUE]) ->save(); $this->drupalGet('/node/add/blog'); $this->waitForEditor(); $this->pressEditorButton('Insert Media');