Esempio n. 1
0
 public function testPostThumbnail()
 {
     $post = Post::find(59);
     $this->assertTrue($post->thumbnail->attachment instanceof Jiko\Blog\Attachment);
     $this->assertContains('hoodie_6_front.jpg', $post->image);
     $this->assertContains('/uploads/', $post->image);
 }
Esempio n. 2
0
 public function testRemoveShortcode()
 {
     Post::removeShortcode('gallery');
     $post = Post::find(123);
     $this->assertEquals($post->content, 'test [gallery id="123" size="medium"] shortcodes');
 }