We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e02fba6 commit 6438170Copy full SHA for 6438170
tests/Controller/Guest/TagControllerTest.php
@@ -67,4 +67,22 @@ public function test_invalid_tag_detail_response(): void
67
$this->get('guest/tags/1')->assertNotFound();
68
$this->get('guest/tags/myTag')->assertNotFound();
69
}
70
+
71
+ public function test_tag_search(): void
72
+ {
73
+ User::factory()->create();
74
+ Tag::factory()->create([
75
+ 'name' => 'testTag1',
76
+ 'visibility' => 1,
77
+ ]);
78
79
+ 'name' => 'testTag2',
80
81
82
+ $this->get('guest/tags?filter=testTag1')->assertSee('testTag1')
83
+ ->assertDontSee('testTag2');
84
85
+ $this->get('guest/tags?filter=testTag2')->assertSee('testTag2')
86
+ ->assertDontSee('testTag1');
87
+ }
88
0 commit comments