Chris@0: 'test']); Chris@0: $this->setExpectedException(StringStorageException::class, 'The string cannot be saved because its not bound to a storage: test'); Chris@0: $string->save(); Chris@0: } Chris@0: Chris@0: /** Chris@0: * @covers ::delete Chris@0: */ Chris@0: public function testDeleteWithoutStorage() { Chris@0: $string = new SourceString(['lid' => 1, 'source' => 'test']); Chris@0: $this->setExpectedException(StringStorageException::class, 'The string cannot be deleted because its not bound to a storage: test'); Chris@0: $string->delete(); Chris@0: } Chris@0: Chris@0: }