Pheasant\Tests\BasicMappingTest::testDeleting PHP Method

testDeleting() public method

public testDeleting ( )
    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");
    }