public function testDeleting() { $post = Post::create('first post'); $this->assertEquals($post->postid, 1); $this->assertEquals($post->title, 'first post'); $post->delete(); $this->assertRowCount(0, "SELECT * FROM post WHERE postid=1"); }