You are here

public function FppServicesTest::createFpp in Fieldable Panels Panes (FPP) 7

Helper function to create an FPP.

5 calls to FppServicesTest::createFpp()
FppServicesTest::testFppDelete in tests/fpp.services.test
Tests FPP resource Delete.
FppServicesTest::testFppIndex in tests/fpp.services.test
Tests FPP resource Index.
FppServicesTest::testFppRetrieve in tests/fpp.services.test
Tests FPP resource Retrieve.
FppServicesTest::testFppUpdate in tests/fpp.services.test
Tests FPP resource Update.
FppServicesTest::testFppUpdatePermFail in tests/fpp.services.test
Tests FPP resource Update fail with no permissions.

File

tests/fpp.services.test, line 307
Tests the services resource Fieldable Panels Pane methods and actions.

Class

FppServicesTest
Test the services resource Fieldable Panels Pane methods and actions.

Code

public function createFpp() {
  $fpp = new StdClass();
  $fpp->bundle = 'fieldable_panels_pane';
  $fpp->title = $this
    ->randomString();
  return fieldable_panels_panes_save($fpp);
}