X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/f0948377096db60ee7c121fb4a94d9af0c359a93..refs/pull/621/head:/tests/Entity/EntityTest.php diff --git a/tests/Entity/EntityTest.php b/tests/Entity/EntityTest.php index 3f23475a0..a43f65b5e 100644 --- a/tests/Entity/EntityTest.php +++ b/tests/Entity/EntityTest.php @@ -11,7 +11,6 @@ class EntityTest extends BrowserKitTest public function test_entity_creation() { - // Test Creation $book = $this->bookCreation(); $chapter = $this->chapterCreation($book); @@ -268,4 +267,14 @@ class EntityTest extends BrowserKitTest } + public function test_slug_format() + { + $entityRepo = app(EntityRepo::class); + $book = $entityRepo->createFromInput('book', [ + 'name' => 'PartA / PartB / PartC' + ]); + + $this->assertEquals('parta-partb-partc', $book->slug); + } + }