Skip to content

Commit e397328

Browse files
committed
add test for Database->deleteDoc()
1 parent b25275a commit e397328

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: tests/DatabaseDocOperationsTest.php

+8
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,12 @@ public function testPutDoc()
7777
$res2 = $this->db->getDoc($this->doc2['id']);
7878
$this->assertFalse($res2['human']);
7979
}
80+
81+
public function testDeleteDoc()
82+
{
83+
$res = $this->db->deleteDoc($this->doc2['id']);
84+
85+
$this->assertTrue($res['ok']);
86+
$this->assertEquals($this->doc2['id'], $res['id']);
87+
}
8088
}

0 commit comments

Comments
 (0)