Commit caa84f24 authored by john_a's avatar john_a Committed by John Avery
Browse files

Issue #2979239 by john_a: change the payload delivered for unit tests when they call apiCall()

parent de216c7c
......@@ -51,10 +51,7 @@ class MarketingCloudAddressTest extends BrowserTestBase {
*/
public function testDefinitions() {
// Test schema.
$schema = $this->moduleConfig->get("definitions.validate_email.schema");
$this->assertNotEmpty($schema, "json schema for validate_email is empty.");
$schema = json_decode($schema);
$this->assertNotEmpty($schema, "json schema for validate_email is invalid json.");
$this->validateDefinition('validate_email');
// Test validateEmail against expected inputs.
$data = $this->validateEmailData();
$result = $this->service
......@@ -64,6 +61,7 @@ class MarketingCloudAddressTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/address/v1/validateEmail',
'data' => json_encode($data),
'method' => 'post',
],
$result
);
......@@ -79,6 +77,21 @@ class MarketingCloudAddressTest extends BrowserTestBase {
$this->assertFalse($result, 'Failed to detect invalid json against the schema in validate_email()');
}
/**
* Test that the Json-Schema is valid, and that the API method id correct.
*
* @param string $machineName
* The machine name for the api call definition.
*/
protected function validateDefinition($machineName)
{
// Validate schema.
$schema = $this->moduleConfig->get("definitions.$machineName.schema");
$this->assertNotEmpty($schema, "json schema for $machineName definition is empty.");
$schema = json_decode($schema);
$this->assertNotEmpty($schema, "json schema for $machineName definition is invalid json.");
}
/**
* JSON payload for the validateEmail() service call.
*
......
......@@ -53,7 +53,7 @@ class MarketingCloudAssetsTest extends BrowserTestBase {
/*
* Test simpleQuery
*/
$this->validateDefinition('simple_query', 'get');
$this->validateDefinition('simple_query');
// Validate service against expected inputs (all)
$params = $this->simpleQueryParamsAll();
$result = $this->service
......@@ -63,6 +63,7 @@ class MarketingCloudAssetsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/asset/v1/content/assets?$page=2&$pagesize=4&$orderBy=name%20asc&$filter=Name%20like%20\'hello%20world\'&$fields=field1,field2,field3',
'data' => '{}',
'method' => 'get',
],
$result,
'Unexpected request data generated by simpleQuery()'
......@@ -76,6 +77,7 @@ class MarketingCloudAssetsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/asset/v1/content/assets?$page=2&$orderBy=name%20asc&$fields=field1,field2,field3',
'data' => '{}',
'method' => 'get',
],
$result,
'Unexpected request data generated by simpleQuery()'
......@@ -84,7 +86,7 @@ class MarketingCloudAssetsTest extends BrowserTestBase {
/*
* Test advancedQuery
*/
$this->validateDefinition('advanced_query', 'post');
$this->validateDefinition('advanced_query');
// Validate service against expected inputs (not all)
$json = $this->advancedQueryJson();
$result = $this->service
......@@ -94,6 +96,7 @@ class MarketingCloudAssetsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/asset/v1/content/assets/query',
'data' => json_encode($json),
'method' => 'post',
],
$result,
'Unexpected request data generated by advancedQuery()'
......@@ -113,7 +116,7 @@ class MarketingCloudAssetsTest extends BrowserTestBase {
/*
* Test createCategory
*/
$this->validateDefinition('create_category', 'post');
$this->validateDefinition('create_category');
// Validate service against expected inputs (non-shared)
$json = $this->createNonSharedCategoryJson();
$result = $this->service
......@@ -123,6 +126,7 @@ class MarketingCloudAssetsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/asset/v1/content/categories',
'data' => json_encode($json),
'method' => 'post',
],
$result,
'Unexpected request data generated by createCategory()'
......@@ -136,6 +140,7 @@ class MarketingCloudAssetsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/asset/v1/content/categories',
'data' => json_encode($json),
'method' => 'post',
],
$result,
'Unexpected request data generated by createCategory()'
......@@ -155,7 +160,7 @@ class MarketingCloudAssetsTest extends BrowserTestBase {
/*
* Test getCategories
*/
$this->validateDefinition('get_categories', 'get');
$this->validateDefinition('get_categories');
// Validate service against expected inputs.
$params = $this->getCategoriesParams();
$result = $this->service
......@@ -165,6 +170,7 @@ class MarketingCloudAssetsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/asset/v1/content/categories?$pagesize=20&$filter=parentId%20eq%203916',
'data' => '{}',
'method' => 'get',
],
$result,
'Unexpected request data generated by getCategories()'
......@@ -173,7 +179,7 @@ class MarketingCloudAssetsTest extends BrowserTestBase {
/*
* Test getCategoryById
*/
$this->validateDefinition('get_category_by_id', 'get');
$this->validateDefinition('get_category_by_id');
// Validate service against expected inputs.
$result = $this->service
->getCategoryById(23765);
......@@ -182,6 +188,7 @@ class MarketingCloudAssetsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/asset/v1/content/categories/23765',
'data' => '{}',
'method' => 'get',
],
$result,
'Unexpected request data generated by getCategoryById()'
......@@ -190,7 +197,7 @@ class MarketingCloudAssetsTest extends BrowserTestBase {
/*
* Test updateCategoryById
*/
$this->validateDefinition('update_category_by_id', 'put');
$this->validateDefinition('update_category_by_id');
// Validate service against expected inputs.
$json = $this->updateCategoryByIdJson();
$result = $this->service
......@@ -200,6 +207,7 @@ class MarketingCloudAssetsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/asset/v1/content/categories/23765',
'data' => json_encode($json),
'method' => 'put',
],
$result,
'Unexpected request data generated by updateCategoryById()'
......@@ -219,7 +227,7 @@ class MarketingCloudAssetsTest extends BrowserTestBase {
/*
* Test deleteCategoryById
*/
$this->validateDefinition('delete_category_by_id', 'delete');
$this->validateDefinition('delete_category_by_id');
// Validate service against expected inputs.
$result = $this->service
->deleteCategoryById(23765);
......@@ -228,6 +236,7 @@ class MarketingCloudAssetsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/asset/v1/content/categories/23765',
'data' => '{}',
'method' => 'delete',
],
$result,
'Unexpected request data generated by deleteCategoryById()'
......@@ -239,13 +248,9 @@ class MarketingCloudAssetsTest extends BrowserTestBase {
*
* @param string $machineName
* The machine name for the api call definition.
* @param string $expectedMethod
* The expected api call method.
*/
protected function validateDefinition($machineName, $expectedMethod) {
protected function validateDefinition($machineName) {
// Validate schema.
$method = $this->moduleConfig->get("definitions.$machineName.method");
$this->assertEquals($expectedMethod, $method, "bad method for $machineName definition");
$schema = $this->moduleConfig->get("definitions.$machineName.schema");
$this->assertNotEmpty($schema, "json schema for $machineName definition is empty.");
$schema = json_decode($schema);
......
......@@ -53,7 +53,7 @@ class MarketingCloudCampaignsTest extends BrowserTestBase {
/*
* Test createCampaign()
*/
$this->validateDefinition('create_campaign', 'post');
$this->validateDefinition('create_campaign');
// Validate service against expected inputs.
$json = $this->createCampaignJson();
$result = $this->service
......@@ -63,6 +63,7 @@ class MarketingCloudCampaignsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/hub/v1/campaigns',
'data' => json_encode($json),
'method' => 'post',
],
$result,
'Unexpected request data generated by createCampaign()'
......@@ -92,7 +93,7 @@ class MarketingCloudCampaignsTest extends BrowserTestBase {
/*
* Test getCampaignCollection()
*/
$this->validateDefinition('get_campaign_collection', 'get');
$this->validateDefinition('get_campaign_collection');
// Validate service against expected inputs.
$params = $this->getCampaignCollectionParams();
$result = $this->service
......@@ -102,6 +103,7 @@ class MarketingCloudCampaignsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/hub/v1/campaigns?$page=1&$pageSize=2&$orderBy=Name%20ASC',
'data' => '{}',
'method' => 'get',
],
$result,
'Unexpected request data generated by getCampaignCollection()'
......@@ -110,7 +112,7 @@ class MarketingCloudCampaignsTest extends BrowserTestBase {
/*
* Test getCampaign()
*/
$this->validateDefinition('get_campaign', 'get');
$this->validateDefinition('get_campaign');
// Validate service against expected inputs.
$result = $this->service
->getCampaign(73654);
......@@ -119,6 +121,7 @@ class MarketingCloudCampaignsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/hub/v1/campaigns/73654',
'data' => '{}',
'method' => 'get',
],
$result,
'Unexpected request data generated by getCampaign()'
......@@ -127,7 +130,7 @@ class MarketingCloudCampaignsTest extends BrowserTestBase {
/*
* Test deleteCampaign()
*/
$this->validateDefinition('delete_campaign', 'delete');
$this->validateDefinition('delete_campaign');
// Validate service against expected inputs.
$result = $this->service
->deleteCampaign(73654);
......@@ -136,6 +139,7 @@ class MarketingCloudCampaignsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/hub/v1/campaigns/73654',
'data' => '{}',
'method' => 'delete',
],
$result,
'Unexpected request data generated by deleteCampaign()'
......@@ -144,7 +148,7 @@ class MarketingCloudCampaignsTest extends BrowserTestBase {
/*
* Test associateAssetToCampaign()
*/
$this->validateDefinition('associate_asset_to_campaign', 'post');
$this->validateDefinition('associate_asset_to_campaign');
// Validate service against expected inputs.
$json = $this->associateAssetToCampaignJson();
$result = $this->service
......@@ -154,6 +158,7 @@ class MarketingCloudCampaignsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/hub/v1/campaigns/73654/assets',
'data' => json_encode($json),
'method' => 'post',
],
$result,
'Unexpected request data generated by associateAssetToCampaign()'
......@@ -178,7 +183,7 @@ class MarketingCloudCampaignsTest extends BrowserTestBase {
/*
* Test getCollectionOfCampaignAssets()
*/
$this->validateDefinition('get_collection_of_campaign_assets', 'get');
$this->validateDefinition('get_collection_of_campaign_assets');
// Validate service against expected inputs.
$result = $this->service
->getCollectionOfCampaignAssets(73654);
......@@ -187,6 +192,7 @@ class MarketingCloudCampaignsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/hub/v1/campaigns/73654/assets',
'data' => '{}',
'method' => 'get',
],
$result,
'Unexpected request data generated by getCollectionOfCampaignAssets()'
......@@ -195,7 +201,7 @@ class MarketingCloudCampaignsTest extends BrowserTestBase {
/*
* Test getCampaignAsset()
*/
$this->validateDefinition('get_campaign_asset', 'get');
$this->validateDefinition('get_campaign_asset');
// Validate service against expected inputs.
$result = $this->service
->getCampaignAsset(123, 456);
......@@ -204,6 +210,7 @@ class MarketingCloudCampaignsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/hub/v1/campaigns/123/assets/456',
'data' => '{}',
'method' => 'get',
],
$result,
'Unexpected request data generated by getCampaignAsset()'
......@@ -212,7 +219,7 @@ class MarketingCloudCampaignsTest extends BrowserTestBase {
/*
* Test unassociateAssetFromCampaign()
*/
$this->validateDefinition('unassociate_asset_from_campaign', 'delete');
$this->validateDefinition('unassociate_asset_from_campaign');
// Validate service against expected inputs.
$result = $this->service
->unassociateAssetFromCampaign(123, 456);
......@@ -221,6 +228,7 @@ class MarketingCloudCampaignsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/hub/v1/campaigns/123/assets/456',
'data' => '{}',
'method' => 'delete',
],
$result,
'Unexpected request data generated by unassociateAssetFromCampaign()'
......@@ -232,13 +240,9 @@ class MarketingCloudCampaignsTest extends BrowserTestBase {
*
* @param string $machineName
* The machine name for the api call definition.
* @param string $expectedMethod
* The expected api call method.
*/
protected function validateDefinition($machineName, $expectedMethod) {
protected function validateDefinition($machineName) {
// Validate schema.
$method = $this->moduleConfig->get("definitions.$machineName.method");
$this->assertEquals($expectedMethod, $method, "bad method for $machineName definition");
$schema = $this->moduleConfig->get("definitions.$machineName.schema");
$this->assertNotEmpty($schema, "json schema for $machineName definition is empty.");
$schema = json_decode($schema);
......
......@@ -53,7 +53,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
/*
* Test getSchemasCollection()
*/
$this->validateDefinition('get_schemas_collection', 'get');
$this->validateDefinition('get_schemas_collection');
// Validate service against expected inputs.
$result = $this->service
->getSchemasCollection();
......@@ -62,6 +62,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/contacts/v1/schema',
'data' => '{}',
'method' => 'get',
],
$result,
'Unexpected request data generated by getSchemasCollection()'
......@@ -70,7 +71,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
/*
* Test createContacts()
*/
$this->validateDefinition('create_contacts', 'post');
$this->validateDefinition('create_contacts');
// Validate service against expected inputs.
$json = $this->createContactsJson();
$result = $this->service
......@@ -80,6 +81,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/contacts/v1/contacts',
'data' => json_encode($json),
'method' => 'post',
],
$result,
'Unexpected request data generated by createContacts()'
......@@ -105,7 +107,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
/*
* Test updateContacts()
*/
$this->validateDefinition('update_contacts', 'patch');
$this->validateDefinition('update_contacts');
// Validate service against expected inputs.
$json = $this->updateContactsJson();
$result = $this->service
......@@ -115,6 +117,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/contacts/v1/contacts',
'data' => json_encode($json),
'method' => 'patch',
],
$result,
'Unexpected request data generated by updateContacts()'
......@@ -123,7 +126,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
/*
* Test createContactEvents()
*/
$this->validateDefinition('create_contact_events', 'post');
$this->validateDefinition('create_contact_events');
// Validate service against expected inputs.
$json = $this->createContactEventsJson1();
$result = $this->service
......@@ -133,6 +136,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/contacts/v1/contactEvents',
'data' => json_encode($json),
'method' => 'post',
],
$result,
'Unexpected request data generated by createContactEvents()'
......@@ -145,6 +149,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/contacts/v1/contactEvents',
'data' => json_encode($json),
'method' => 'post',
],
$result,
'Unexpected request data generated by createContactEvents()'
......@@ -170,7 +175,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
/*
* Test removeContactFromJourney()
*/
$this->validateDefinition('remove_contact_from_journey', 'post');
$this->validateDefinition('remove_contact_from_journey');
// Validate service against expected inputs.
$json = $this->removeContactFromJourneyJson();
$result = $this->service
......@@ -180,6 +185,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/interaction/v1/interactions/contactexit',
'data' => json_encode($json),
'method' => 'post',
],
$result,
'Unexpected request data generated by removeContactFromJourney()'
......@@ -205,7 +211,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
/*
* Test getContactsExitStatusFromJourney()
*/
$this->validateDefinition('get_contacts_exit_status_from_journey', 'post');
$this->validateDefinition('get_contacts_exit_status_from_journey');
// Validate service against expected inputs.
$json = $this->removeContactFromJourneyJson();
$result = $this->service
......@@ -215,6 +221,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/interaction/v1/interactions/contactexit/status',
'data' => json_encode($json),
'method' => 'post',
],
$result,
'Unexpected request data generated by getContactsExitStatusFromJourney()'
......@@ -240,7 +247,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
/*
* Test searchContacts()
*/
$this->validateDefinition('search_contacts', 'post');
$this->validateDefinition('search_contacts');
// Validate service against expected inputs.
$json = $this->searchContactsJson();
$result = $this->service
......@@ -250,6 +257,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/contacts/v1/contacts/search',
'data' => json_encode($json),
'method' => 'post',
],
$result,
'Unexpected request data generated by searchContacts()'
......@@ -276,7 +284,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
/*
* Test searchAttributes()
*/
$this->validateDefinition('search_attributes', 'post');
$this->validateDefinition('search_attributes');
// Validate service against expected inputs.
$json = $this->searchAttributesJson();
$result = $this->service
......@@ -286,6 +294,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/contacts/v1/attributes/search',
'data' => json_encode($json),
'method' => 'post',
],
$result, 'Unexpected request data generated by searchAttributes()'
);
......@@ -311,7 +320,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
/*
* Test insertAttributeValuesById()
*/
$this->validateDefinition('insert_attribute_values_by_id', 'post');
$this->validateDefinition('insert_attribute_values_by_id');
// Validate service against expected inputs.
$json = $this->insertAttributeValuesByIdJson();
$result = $this->service
......@@ -321,6 +330,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/contacts/v1/attributeSets/765',
'data' => json_encode($json),
'method' => 'post',
],
$result, 'Unexpected request data generated by insertAttributeValuesById()'
);
......@@ -346,7 +356,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
/*
* Test updateAttributeValuesById()
*/
$this->validateDefinition('update_attribute_values_by_id', 'patch');
$this->validateDefinition('update_attribute_values_by_id');
// Validate service against expected inputs.
$json = $this->insertAttributeValuesByIdJson();
$result = $this->service
......@@ -356,6 +366,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/contacts/v1/attributeSets/765',
'data' => json_encode($json),
'method' => 'patch',
],
$result, 'Unexpected request data generated by updateAttributeValuesById()'
);
......@@ -381,7 +392,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
/*
* Test getContactKeyForEmailAddresses()
*/
$this->validateDefinition('get_contact_key_for_email_addresses', 'post');
$this->validateDefinition('get_contact_key_for_email_addresses');
// Validate service against expected inputs.
$json = $this->getContactKeyForEmailAddressesJson();
$result = $this->service
......@@ -391,6 +402,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/contacts/v1/addresses/email/search',
'data' => json_encode($json),
'method' => 'post',
],
$result, 'Unexpected request data generated by getContactKeyForEmailAddresses()'
);
......@@ -416,7 +428,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
/*
* Test searchAttributeSetsByName()
*/
$this->validateDefinition('search_attribute_sets_by_name', 'get');
$this->validateDefinition('search_attribute_sets_by_name');
// Validate service against expected inputs.
$result = $this->service
->searchAttributeSetsByName('my_name');
......@@ -425,6 +437,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/contacts/v1/attributeSets/my_name',
'data' => '{}',
'method' => 'get',
],
$result, 'Unexpected request data generated by searchAttributeSetsByName()'
);
......@@ -432,7 +445,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
/*
* Test searchAttributeGroupsBySchema()
*/
$this->validateDefinition('search_attribute_groups_by_schema', 'get');
$this->validateDefinition('search_attribute_groups_by_schema');
// Validate service against expected inputs.
$result = $this->service
->searchAttributeGroupsBySchema('my_schema');
......@@ -441,6 +454,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/contacts/v1/schemas/my_schema/attributeGroups',
'data' => '{}',
'method' => 'get',
],
$result, 'Unexpected request data generated by searchAttributeGroupsBySchema()'
);
......@@ -448,7 +462,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
/*
* Test searchAttributeGroupsBySchema()
*/
$this->validateDefinition('get_custom_object_info', 'get');
$this->validateDefinition('get_custom_object_info');
// Validate service against expected inputs.
$result = $this->service
->getCustomObjectInfo('my_id');
......@@ -457,6 +471,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/contacts/v1/customObject/my_id/isUsedInContacts',
'data' => '{}',
'method' => 'get',
],
$result, 'Unexpected request data generated by getCustomObjectInfo()'
);
......@@ -464,7 +479,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
/*
* Test searchAttributeGroupIdBySchema()
*/
$this->validateDefinition('search_attribute_group_id_by_schema', 'get');
$this->validateDefinition('search_attribute_group_id_by_schema');
// Validate service against expected inputs.
$result = $this->service
->searchAttributeGroupIdBySchema('schema_id', 'my_id');
......@@ -473,6 +488,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/contacts/v1/schemas/schema_id/attributeGroups/my_id',
'data' => '{}',
'method' => 'get',
],
$result, 'Unexpected request data generated by searchAttributeGroupIdBySchema()'
);
......@@ -480,7 +496,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
/*
* Test searchAttributeSetDefinitions()
*/
$this->validateDefinition('search_attribute_set_definitions', 'get');
$this->validateDefinition('search_attribute_set_definitions');
// Validate service against expected inputs.
$result = $this->service
->searchAttributeSetDefinitions('my_id');
......@@ -489,6 +505,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
[
'url' => 'https://www.exacttargetapis.com/contacts/v1/attributeSetDefinitions/my_id',
'data' => '{}',
'method' => 'get',
],
$result, 'Unexpected request data generated by searchAttributeSetDefinitions()'
);
......@@ -496,7 +513,7 @@ class MarketingCloudContactsTest extends BrowserTestBase {
/*
* Test searchAttributeSetNamesBySchema()
*/
$this->validateDefinition('search_attribute_set_names_by_schema', 'post');
$this->validateDefinition('search_attribute_set_names_by_schema');
// Validate service against expected inputs.
$json = $this->searchAttributeSetNamesBySchemaJson();
$result = $this->service