parse-community / parse-php-sdk

The PHP SDK for Parse Platform
https://parseplatform.org/
Other
811 stars 346 forks source link

Adds set/save to ParseConfig #371

Closed montymxb closed 6 years ago

montymxb commented 6 years ago

This adds set/save functionality to ParseConfig, which interacts with the _GlobalConfig collection server-side (of which there should only ever be one instance). Associated tests are added as well.

You can set/save as follows.

// gets the current parse config
$config = new ParseConfig();

// sets a new key/value pair in the config
$config->set('key', 'value');

// saves the current config back to the server
$config->save(); // internally uses the masterKey to save
codecov[bot] commented 6 years ago

Codecov Report

Merging #371 into master will increase coverage by <.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #371      +/-   ##
==========================================
+ Coverage   98.93%   98.94%   +<.01%     
==========================================
  Files          36       36              
  Lines        3389     3403      +14     
==========================================
+ Hits         3353     3367      +14     
  Misses         36       36
Impacted Files Coverage Δ
src/Parse/ParseConfig.php 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9f3dffe...583e657. Read the comment docs.