Skip to content

Commit dffe21c

Browse files
author
Rafael Marinho
committed
fix webhook v2 tests
1 parent 3ee7ebe commit dffe21c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/integration/IntegrationTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,22 @@ public function testUpdateAppSettings()
157157
{
158158
$response = $this->client->getAppSettings();
159159
$settings = $response['app'];
160+
161+
unset($settings['webhook_url']);
162+
unset($settings['webhook_events']);
163+
unset($settings['sqs_url']);
164+
unset($settings['sqs_key']);
165+
unset($settings['sqs_secret']);
166+
unset($settings['sns_topic_arn']);
167+
unset($settings['sns_key']);
168+
unset($settings['sns_secret']);
169+
unset($settings['async_moderation_config']);
170+
171+
// Add new event_hooks format if needed
172+
if (!isset($settings['event_hooks'])) {
173+
$settings['event_hooks'] = [];
174+
}
175+
160176
$response = $this->client->updateAppSettings($settings);
161177
$this->assertTrue(array_key_exists("duration", (array)$response));
162178
}

0 commit comments

Comments
 (0)