You are here

public function ExifFunctionalTestCase::activateMetadataOnObjectTypes in Exif 7

1 call to ExifFunctionalTestCase::activateMetadataOnObjectTypes()
ExifFunctionalTestCase::setUp in ./exif_functionaltests.php
Sets up a Drupal site for running functional and integration tests.

File

./exif_functionaltests.php, line 106

Class

ExifFunctionalTestCase

Code

public function activateMetadataOnObjectTypes($objectTypes = array(), $vid = 1) {
  if (!empty($objectTypes)) {
    $edit = array();
    foreach ($objectTypes as $key => $objectType) {
      $edit["exif_nodetypes[{$objectType}]"] = $objectType;
    }
    $edit["exif_vocabulary"] = $vid;

    //already existing vocabulaty tags - vid = 1
    $this
      ->drupalPost("admin/config/media/exif/settings", $edit, t("Save configuration"));
  }
}