public function testCreateNewContent()
 {
     $this->logInWithPermission('CMS_ACCESS_CMSMain');
     $mid = Member::currentUserID();
     // create some content and make a change. When saving, it should be added to the current user's
     // active changeset
     $obj = new Page();
     $obj->Title = "New Page";
     $obj->write();
     // it should have a changeset now
     $cs1 = $obj->getCurrentChangeset();
     $this->assertNotNull($cs1);
     $obj->Title = "New Page Title";
     $obj->write();
     $cs1 = $obj->getCurrentChangeset();
     $this->assertNotNull($cs1);
     $this->assertEquals(1, $cs1->getItems()->Count());
     $this->assertEquals("Active", $cs1->Status);
 }