diff --git a/app/Entities/SlugGenerator.php b/app/Entities/SlugGenerator.php index 459a5264a..e8bc556ab 100644 --- a/app/Entities/SlugGenerator.php +++ b/app/Entities/SlugGenerator.php @@ -1,5 +1,7 @@ seeInElement('#recently-updated-pages', $page->name); } - public function test_slug_multi_byte_lower_casing() + public function test_slug_multi_byte_url_safe() { $book = $this->newBook([ - 'name' => 'КНИГА' + 'name' => 'информация' ]); - $this->assertEquals('книга', $book->slug); - } + $this->assertEquals('informatsiya', $book->slug); + $book = $this->newBook([ + 'name' => '¿Qué?' + ]); + + $this->assertEquals('que', $book->slug); + } public function test_slug_format() {