1 field_ui.test | public FieldUIViewModeTestHelper::setUp(array $modules = array()) |
Overrides BackdropWebTestCase::setUp().
Overrides BackdropWebTestCase::setUp
File
- core/
modules/ field_ui/ tests/ field_ui.test, line 868 - Tests for field_ui.module.
Class
- FieldUIViewModeTestHelper
- Helper class for testing display mode functionality.
Code
public function setUp(array $modules = array()) {
$modules[] = 'comment';
$modules[] = 'field_ui';
$modules[] = 'taxonomy';
$modules[] = 'view_mode_test';
parent::setUp($modules);
// Create an administrative user.
$this->admin_user = $this->backdropCreateUser(array(
'administer fields',
'administer view modes',
'administer content types',
));
// Create content types for testing.
$this->backdropCreateContentType(array('type' => 'page', 'name' => 'Page'));
// Create a post content type with comments enabled.
$this->backdropCreateContentType(array(
'type' => 'post',
'name' => 'Post',
'settings' => array(
'comment_default' => COMMENT_NODE_OPEN,
),
));
}