function test_update() { $name = "cconeus"; $rank = "Leader"; $join = '2014-09-15'; $test_rank = new Clan($id, $name, $rank, $join); $test_rank->save(); $new_test_rank = "Co-Leader"; $test_rank->update($new_test_rank); $this->assertEquals("Co-Leader", $test_rank->getRank()); }