public function ServicesViewsSecurityUpgradePathTest::testCloneDefault in Services Views 7
Test cloning the default display.
File
- tests/
services_views_upgrade_path.test, line 118 - Security upgrade tests for the Services Views module.
Class
- ServicesViewsSecurityUpgradePathTest
- Api call tests for the security upgrade from 1.2 to 1.3.
Code
public function testCloneDefault() {
$view = views_get_view('services_views_sorted_nodes');
$new_display_name = services_views_clone_display($view, 'default');
$this
->assertEqual($new_display_name, 'services_clone_default');
$this
->assertEqual($view->display[$new_display_name]->display_plugin, 'services');
}