public function test_should_set_self_to_parent_on_committer_update() { $sha = '1233567890fghjkaisdfasd'; $data = new stdClass(); $data->sha = $sha; $commit = new WordPress_GitHub_Sync_Commit($data); $commit->set_committer(new stdClass()); $this->assertCount(1, $parents = $commit->parents()); $this->assertSame($sha, $parents[0]); }