clickViewsOperationLink example

// Make sure the view starts off as disabled (does not appear on the listing     // page).     $edit_href = 'admin/structure/views/view/glossary';
    $this->drupalGet('admin/structure/views');
    // @todo Disabled default views do now appear on the front page. Test this     // behavior with templates instead.     // $this->assertSession()->linkByHrefNotExists($edit_href);
    // Enable the view, and make sure it is now visible on the main listing     // page.     $this->drupalGet('admin/structure/views');
    $this->clickViewsOperationLink('Enable', '/glossary/');
    $this->assertSession()->addressEquals('admin/structure/views');
    $this->assertSession()->linkByHrefExists($edit_href);

    // It should not be possible to revert the view yet.     // @todo Figure out how to handle this with the new configuration system.     // $this->assertSession()->linkNotExists('Revert');     // $revert_href = 'admin/structure/views/view/glossary/revert';     // $this->assertSession()->linkByHrefNotExists($revert_href);
    // Edit the view and change the title. Make sure that the new title is     // displayed.
Home | Imprint | This part of the site doesn't use cookies.