Commit 2b5d6424 authored by dawehner's avatar dawehner Committed by tim.plunkett

Remove and comment out unneeded tests.

parent 77038453
...@@ -70,20 +70,6 @@ function assertViewDestroy($view) { ...@@ -70,20 +70,6 @@ function assertViewDestroy($view) {
$this->assertEqual($view->attachment_after, ''); $this->assertEqual($view->attachment_after, '');
} }
function testDelete() {
// Delete a database view
$view = $this->view_test_delete();
$view->save();
$view = views_get_view($view->name);
$view->delete();
$view = views_get_view($view->name);
$this->assertNotNull($view, 'Make sure that the old view is still in the static cache.');
$view = views_get_view($view->name, TRUE);
$this->assertNull($view, "Make sure that the old view gets cleared by the reset parameter.");
}
function testValidate() { function testValidate() {
// Test a view with multiple displays. // Test a view with multiple displays.
// Validating a view shouldn't change the active display. // Validating a view shouldn't change the active display.
......
...@@ -126,10 +126,11 @@ function testViewsWizardAndListing() { ...@@ -126,10 +126,11 @@ function testViewsWizardAndListing() {
$this->assertNoText($node2->label()); $this->assertNoText($node2->label());
// Check if the export screen works. // Check if the export screen works.
$this->drupalGet('admin/structure/views/view/' . $view3['name'] . '/export'); // @todo Remove this once the export is gone.
$this->assertRaw('$view = new Drupal\views\View();'); // $this->drupalGet('admin/structure/views/view/' . $view3['name'] . '/export');
$this->assertRaw($view3['human_name']); // $this->assertRaw('$view = new Drupal\views\View(array(), "view");');
$this->assertRaw($view3['description']); // $this->assertRaw($view3['human_name']);
// $this->assertRaw($view3['description']);
// Make sure the listing page doesn't show disabled default views. // Make sure the listing page doesn't show disabled default views.
$this->assertNoText('tracker', t('Default tracker view does not show on the listing page.')); $this->assertNoText('tracker', t('Default tracker view does not show on the listing page.'));
......
...@@ -39,9 +39,10 @@ function testDefaultViews() { ...@@ -39,9 +39,10 @@ function testDefaultViews() {
$this->assertLinkByHref($edit_href); $this->assertLinkByHref($edit_href);
// It should not be possible to revert the view yet. // It should not be possible to revert the view yet.
$this->assertNoLink(t('Revert')); // @todo Figure out how to handle this with the new configuration system.
$revert_href = 'admin/structure/views/view/frontpage/revert'; // $this->assertNoLink(t('Revert'));
$this->assertNoLinkByHref($revert_href); // $revert_href = 'admin/structure/views/view/frontpage/revert';
// $this->assertNoLinkByHref($revert_href);
// Edit the view and change the title. Make sure that the new title is // Edit the view and change the title. Make sure that the new title is
// displayed. // displayed.
...@@ -54,12 +55,12 @@ function testDefaultViews() { ...@@ -54,12 +55,12 @@ function testDefaultViews() {
// It should now be possible to revert the view. Do that, and make sure the // It should now be possible to revert the view. Do that, and make sure the
// view title we added above no longer is displayed. // view title we added above no longer is displayed.
$this->drupalGet('admin/structure/views'); // $this->drupalGet('admin/structure/views');
$this->assertLink(t('Revert')); // $this->assertLink(t('Revert'));
$this->assertLinkByHref($revert_href); // $this->assertLinkByHref($revert_href);
$this->drupalPost($revert_href, array(), t('Revert')); // $this->drupalPost($revert_href, array(), t('Revert'));
$this->drupalGet('frontpage'); // $this->drupalGet('frontpage');
$this->assertNoText($new_title); // $this->assertNoText($new_title);
// Now disable the view, and make sure it stops appearing on the main view // Now disable the view, and make sure it stops appearing on the main view
// listing page but instead goes back to displaying on the disabled views // listing page but instead goes back to displaying on the disabled views
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment