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);
$this->backdropCreateContentType(array('type' => 'post', 'name' => 'Post'));
for ($n = 0; $n < 5; $n++) {
$this->test_content[] = $this->backdropCreateNode(array('type' => 'post'));
}
$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);
}