/** * @expectedException \OCP\Share\Exceptions\IllegalIDChangeException * @expectedExceptionMessage Not allowed to assign a new provider id to a share */ public function testSetProviderIdOnce() { $this->share->setProviderId('foo'); $this->share->setProviderId('bar'); }