From: Antonio Cortés (DrZippie) Date: Thu, 25 Jun 2020 16:42:28 +0000 (+0200) Subject: removed test_slug_multi_byte_lower_casing and added new test test_slug_multi_byte_ur... X-Git-Tag: v0.30.0~1^2~40^2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/refs/pull/2165/head?ds=inline removed test_slug_multi_byte_lower_casing and added new test test_slug_multi_byte_url_safe --- diff --git a/tests/Entity/EntityTest.php b/tests/Entity/EntityTest.php index d7e4ec61c..de1e025ad 100644 --- a/tests/Entity/EntityTest.php +++ b/tests/Entity/EntityTest.php @@ -273,15 +273,20 @@ class EntityTest extends BrowserKitTest ->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() {