public function testMaxLength() { $post = PostWithMaxLength::create(['title' => 'A post with a really long title']); $this->assertEquals('a-post-wit', $post->slug); }