/** * @depends testFind */ public function testRemove() { My_ShantyMongo_User::remove(array('name.first' => 'Bob'), array('safe' => true)); $bob = My_ShantyMongo_User::find('4c04516a1f5f5e21361e3ab0'); $this->assertNull($bob); $users = My_ShantyMongo_User::all(); $this->assertEquals(2, $users->count()); }