You are here

protected function FieldablePanelsPanesSubContext::getFPPRevisions in Panopoly 7

Get the list of revisions for a Fieldable Panels Pane.

Parameters

int $fpid: The ID for the Fieldable Panels Pane.

2 calls to FieldablePanelsPanesSubContext::getFPPRevisions()
FieldablePanelsPanesSubContext::assertRevisionCount in modules/panopoly/panopoly_test/behat/steps/panopoly_test_fpp.behat.inc
@Then fieldable panels pane :admin_title should have :expected_count revision(s)
FieldablePanelsPanesSubContext::iAmViewingFPPRevision in modules/panopoly/panopoly_test/behat/steps/panopoly_test_fpp.behat.inc
@Given I am viewing revision :revision_number of fieldable panels pane :admin_title

File

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

Class

FieldablePanelsPanesSubContext

Code

protected function getFPPRevisions($fpid) {
  return db_query("SELECT * FROM {fieldable_panels_panes_revision} WHERE fpid = :fpid", array(
    ':fpid' => $fpid,
  ))
    ->fetchAll();
}