Beispiel #1
0
 public function testEmojiPlugin()
 {
     $plugin = PluginRepository::find('emoji');
     $post = (object) ['content' => ':octocat:'];
     $params = (object) ['entry' => &$post];
     $plugin->convert($params);
     $this->assertRegExp('/<img .*?>/', $post->content);
 }
 /**
  * @expectedException NotFoundException
  */
 public function testFindNotFound()
 {
     PluginRepository::find(99);
 }