public function setUp() { $this->db = $this->mocks()->db; _elgg_services()->setValue('db', $this->db); _elgg_services()->setValue('subtypeTable', new SubtypeTable($this->db)); }