Skip to content

Commit

Permalink
Add UTF-8 Slug test for Tag Module
Browse files Browse the repository at this point in the history
  • Loading branch information
darron1217 committed Feb 27, 2018
1 parent 94e4570 commit b809722
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Modules/Tag/Tests/Integration/TaggableTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ public function it_gets_all_tags_for_a_namespace()
$this->assertCount(3, Page::allTags()->get());
}

/** @test */
public function it_gets_pages_with_non_latin_tags()
{
$this->createPage(['한글 태그']);

$this->assertCount(1, Page::whereTag(['한글-태그'])->get());
}

private function createPage(array $tags = [])
{
return $this->page->create([
Expand Down

0 comments on commit b809722

Please sign in to comment.