mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
removed test_slug_multi_byte_lower_casing and added new test test_slug_multi_byte_url_safe
This commit is contained in:
parent
ca202c1819
commit
d617dba61c
@ -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' => 'КНИГА'
|
'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()
|
public function test_slug_format()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user