Commit c4131e29 authored by webchick's avatar webchick
Browse files

Issue #2009632 by tim.plunkett, dawehner, giammi: Switch CommentPreviewTest...

Issue #2009632 by tim.plunkett, dawehner, giammi: Switch CommentPreviewTest from standard profile to testing.
parent 2a4e4661
......@@ -17,11 +17,11 @@
class CommentPreviewTest extends CommentTestBase {
/**
* Use the standard profile.
* Modules to enable.
*
* @var string
* @var array
*/
protected $profile = 'standard';
public static $modules = array('image');
public static function getInfo() {
return array(
......@@ -31,6 +31,32 @@ public static function getInfo() {
);
}
function setUp() {
parent::setUp();
// Create user picture field.
module_load_install('user');
user_install_picture_field();
// Add the basic_html filter format from the standard install profile.
$filter_format_storage_controller = $this->container->get('plugin.manager.entity')->getStorageController('filter_format');
$filter_format = $filter_format_storage_controller->create(array(
'format' => 'basic_html',
'name' => 'Basic HTML',
'status' => '1',
'roles' => array('authenticated'),
), 'filter_format');
$filter_format->setFilterConfig('filter_html', array(
'module' => 'filter',
'status' => '1',
'settings' => array(
'allowed_html' => '<a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <h4> <h5> <h6> <p> <span> <img>',
),
));
$filter_format->save();
}
/**
* Tests comment preview.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment