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