public function testPostSlug()
 {
     Post::observe(new SlugObserver());
     $post = new Post();
     $post->save();
     $this->assertRegExp('/^[a-z0-9]{8}$/i', (string) $post->slug);
 }
 public function init()
 {
     Comment::observe(new CountCacheObserver());
     Post::observe(new CountCacheObserver());
     $this->data = $this->setupUserAndPost();
 }