It"should warn that state is off"{$results=Set-DbaDbQueryStoreOptions-SqlInstance$instance-Databasemsdb-FlushInterval$newnumber-WarningVariablewarning3>&1$warning|ShouldNotBe$null}

It"should change the specified param to the new value"{$results=Set-DbaDbQueryStoreOptions-SqlInstance$instance-Databasemsdb-FlushInterval$newnumber-StateReadWrite$results.DataFlushIntervalInSeconds|ShouldBe$newnumber}}}}}