/** * @test * @expectedException Tx_Extbase_Persistence_Exception_IllegalObjectType */ public function removeChecksObjectType() { $this->repository->_set('objectType', 'ExpectedObjectType'); $this->repository->remove(new stdClass()); }