]> BookStack Code Mirror - bookstack/commitdiff
removed test_slug_multi_byte_lower_casing and added new test test_slug_multi_byte_ur... 2165/head
authorAntonio Cortés (DrZippie) <redacted>
Thu, 25 Jun 2020 16:42:28 +0000 (18:42 +0200)
committerAntonio Cortés (DrZippie) <redacted>
Thu, 25 Jun 2020 16:42:28 +0000 (18:42 +0200)
tests/Entity/EntityTest.php

index d7e4ec61c741f8b0e0822ba1307d7130ce8923c8..de1e025ade6a1e832cad59834f0c0774abf8ad1e 100644 (file)
@@ -273,15 +273,20 @@ class EntityTest extends BrowserKitTest
             ->seeInElement('#recently-updated-pages', $page->name);
     }
 
             ->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([
     {
         $book = $this->newBook([
-            'name' => 'Ð\9aÐ\9dÐ\98Ð\93Ð\90'
+            'name' => 'инÑ\84оÑ\80маÑ\86иÑ\8f'
         ]);
 
         ]);
 
-        $this->assertEquals('книга', $book->slug);
-    }
+        $this->assertEquals('informatsiya', $book->slug);
 
 
+        $book = $this->newBook([
+            'name' => '¿Qué?'
+        ]);
+
+        $this->assertEquals('que', $book->slug);
+    }
 
     public function test_slug_format()
     {
 
     public function test_slug_format()
     {