1 call to ExifFunctionalTestCase::activateMetadataOnObjectTypes()
ExifFunctionalTestCase::setUp in ./exif_functionaltests.php

File

./exif_functionaltests.php, line 129

Class

ExifFunctionalTestCase
Base class for functional tests for this module.

Code

public function activateMetadataOnObjectTypes(array $objectTypes = array(), $vid = 1) {
    if (!empty($objectTypes)) {
        $edit = array();
        foreach ($objectTypes as $key => $objectType) {
            $edit["exif_nodetypes[{$objectType}]"] = $objectType;
        }
        // Already existing vocabulaty tags - vid = 1.
        $edit['exif_vocabulary'] = $vid;
        $this->drupalPost('admin/config/media/exif/settings', $edit, 'Save configuration');
    }
}