Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     foreach ($this->expectedResults as $row) {
         $this->databaseContents['permission'][] = array('perm' => implode(', ', $row['permissions']), 'rid' => $row['rid']);
         unset($row['permissions']);
         $this->databaseContents['role'][] = $row;
     }
     $this->databaseContents['filter_formats'][] = array('format' => 1, 'roles' => '');
     parent::setUp();
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     foreach ($this->expectedResults as $k => $row) {
         foreach ($row['parent'] as $parent) {
             $this->databaseContents['term_hierarchy'][] = array('tid' => $row['tid'], 'parent' => $parent);
         }
         unset($row['parent']);
         $this->databaseContents['term_data'][$k] = $row;
     }
     parent::setUp();
 }
Exemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     foreach ($this->expectedResults as $k => $row) {
         $this->databaseContents['comments'][$k] = $row;
         $this->databaseContents['comments'][$k]['status'] = 1 - $this->databaseContents['comments'][$k]['status'];
     }
     // Add node table data.
     $this->databaseContents['node'][] = array('nid' => 2, 'type' => 'story');
     $this->databaseContents['node'][] = array('nid' => 3, 'type' => 'page');
     parent::setUp();
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     foreach ($this->expectedResults as $k => $field_view_mode) {
         // These are stored as serialized strings.
         $field_view_mode['display_settings'] = serialize($field_view_mode['display_settings']);
         $field_view_mode['widget_settings'] = serialize($field_view_mode['widget_settings']);
         $this->databaseContents['content_node_field'][] = array('field_name' => $field_view_mode['field_name'], 'type' => $field_view_mode['type'], 'module' => $field_view_mode['module']);
         unset($field_view_mode['type']);
         unset($field_view_mode['module']);
         $this->databaseContents['content_node_field_instance'][] = $field_view_mode;
         // Update the expected display settings.
         $this->expectedResults[$k]['display_settings'] = $this->expectedResults[$k]['display_settings'][$field_view_mode['view_mode']];
     }
     parent::setUp();
 }
Exemplo n.º 5
0
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     $this->databaseContents['content_node_field_instance'][] = array('display_settings' => serialize(array('weight' => '31', 'parent' => '', 'label' => array('format' => 'above'), 'teaser' => array('format' => 'default', 'exclude' => 0), 'full' => array('format' => 'default', 'exclude' => 0), 4 => array('format' => 'default', 'exclude' => 0))));
     parent::setUp();
 }