We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b22342f commit 390d8e4Copy full SHA for 390d8e4
tests/Feature/Http/ImportControllerTest.php
@@ -12,6 +12,19 @@ class ImportControllerTest extends TestCase
12
{
13
use RefreshDatabase;
14
15
+ public function test_import_scrapes_from_url(): void
16
+ {
17
+ $membership = $this->setupBarMembership();
18
+ $this->actingAs($membership->user);
19
+
20
+ $this->withHeader('Bar-Assistant-Bar-Id', (string) $membership->bar_id);
21
+ $response = $this->postJson('/api/import/scrape', [
22
+ 'source' => 'https://barassistant.app'
23
+ ]);
24
25
+ $response->assertSuccessful();
26
+ }
27
28
public function test_import_cocktail(): void
29
30
$membership = $this->setupBarMembership();
0 commit comments