You are here

public function FieldablePanelsPanesSubContext::iAmViewingFPPRevision in Panopoly 7

@Given I am viewing revision :revision_number of fieldable panels pane :admin_title

@todo: Can we only allow this to work with @api tests?

File

modules/panopoly/panopoly_test/behat/steps/panopoly_test_fpp.behat.inc, line 151
Provide Behat step-definitions for Fieldable Panels Panes.

Class

FieldablePanelsPanesSubContext

Code

public function iAmViewingFPPRevision($revision_number, $admin_title) {
  $fpp = $this
    ->getFPPByAdminTitle($admin_title);
  $revisions = $this
    ->getFPPRevisions($fpp->fpid);
  $vid = $revisions[$revision_number - 1]->vid;
  $path = "admin/structure/fieldable-panels-panes/view/{$fpp->fpid}/revision/{$vid}";
  $this
    ->getSession()
    ->visit($this
    ->locatePath($path));
}