/** * @test * @expectedException \TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException */ public function updateRejectsObjectsOfWrongType() { $this->repository->_set('objectType', 'Foo'); $this->repository->update(new \stdClass()); }