1 views_plugin_display_embed.test protected ViewsPluginDisplayEmbedTestCase::setUp(array $modules = array())

File

core/modules/views/tests/plugins/views_plugin_display_embed.test, line 20
Definition of ViewsPluginDisplayEmbedTestCase.

Class

ViewsPluginDisplayEmbedTestCase
Tests the embed display plugin.

Code

protected function setUp(array $modules = array()) {
  parent::setUp($modules);

  // Create a content type and content.
  $this->backdropCreateContentType(array('type' => 'post', 'name' => 'Post'));
  for ($n = 0; $n < 5; $n++) {
    $this->test_content[] = $this->backdropCreateNode(array('type' => 'post'));
  }

  // Create and log in as the admin user.
  $this->admin_user = $this->backdropCreateUser(array(
    'administer views',
    'access administration pages',
    'access content',
    'view any unpublished content',
    'bypass node access',
    'administer nodes',
  ));
  $this->backdropLogin($this->admin_user);
}