|
23 | 23 |
|
24 | 24 | $this->withoutExceptionHandling();
|
25 | 25 | post(route('zapier.webhooks.store'), [
|
26 |
| - 'form_id' => $form->slug, |
| 26 | + 'form_id' => $form->id, |
27 | 27 | 'hookUrl' => $hookUrl = 'https://zapier.com/hook/test'
|
28 | 28 | ])
|
29 | 29 | ->assertOk();
|
|
45 | 45 | Sanctum::actingAs($user);
|
46 | 46 |
|
47 | 47 | post(route('zapier.webhooks.store'), [
|
48 |
| - 'form_id' => $form->slug, |
| 48 | + 'form_id' => $form->id, |
49 | 49 | 'hookUrl' => 'https://zapier.com/hook/test'
|
50 | 50 | ])
|
51 | 51 | ->assertForbidden();
|
|
64 | 64 | Sanctum::actingAs($user);
|
65 | 65 |
|
66 | 66 | post(route('zapier.webhooks.store'), [
|
67 |
| - 'form_id' => $form->slug, |
| 67 | + 'form_id' => $form->id, |
68 | 68 | 'hookUrl' => 'https://zapier.com/hook/test'
|
69 | 69 | ])
|
70 | 70 | ->assertForbidden();
|
|
94 | 94 | assertDatabaseCount('form_integrations', 1);
|
95 | 95 |
|
96 | 96 | delete(route('zapier.webhooks.destroy', $integration), [
|
97 |
| - 'form_id' => $form->slug, |
| 97 | + 'form_id' => $form->id, |
98 | 98 | 'hookUrl' => $hookUrl,
|
99 | 99 | ])
|
100 | 100 | ->assertOk();
|
|
122 | 122 | ]);
|
123 | 123 |
|
124 | 124 | delete(route('zapier.webhooks.destroy', $integration), [
|
125 |
| - 'form_id' => $form->slug, |
| 125 | + 'form_id' => $form->id, |
126 | 126 | 'hookUrl' => 'https://google.com',
|
127 | 127 | ])
|
128 | 128 | ->assertOk();
|
|
178 | 178 | Sanctum::actingAs($user, ['view', 'manage-integrations']);
|
179 | 179 |
|
180 | 180 | // Call the poll endpoint
|
181 |
| - $response = $this->getJson(route('zapier.webhooks.poll', ['form_id' => $form->slug])); |
| 181 | + $response = $this->getJson(route('zapier.webhooks.poll', ['form_id' => $form->id])); |
182 | 182 |
|
183 | 183 | // Assert the response status is OK
|
184 | 184 | $response->assertOk();
|
|
229 | 229 |
|
230 | 230 | // Call the poll endpoint
|
231 | 231 | $this->withoutExceptionHandling();
|
232 |
| - $response = $this->getJson(route('zapier.webhooks.poll', ['form_id' => $form->slug])); |
| 232 | + $response = $this->getJson(route('zapier.webhooks.poll', ['form_id' => $form->id])); |
233 | 233 | // Assert the response status is OK
|
234 | 234 | $response->assertOk();
|
235 | 235 |
|
|
0 commit comments