fixes: CDR engine fixes for duplicate use of actions across rules in addition to...
[openemr.git] / tests / Tests / MockRestConfig.php
blob15d6ad22c93177e600ee05288bc18e052fb59061
1 <?php
3 /**
4 * MockRestConfig is intended to imitate the \RestConfig class that we don't have fully namespaced due to its reliance
5 * on globals and a bunch of other stuff. Methods that are in \RestConfig can be imitated here so we can have some
6 * form of testing.
7 * @package openemr
8 * @link http://www.open-emr.org
9 * @author Stephen Nielson <stephen@nielson.org>
10 * @copyright Copyright (c) 2021 Stephen Nielson <stephen@nielson.org>
11 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
14 namespace OpenEMR\Tests;
16 class MockRestConfig
18 public static $FHIR_ROUTE_MAP;
19 public static $systemScopesEnabled = false;
21 public static function reset()
23 self::$FHIR_ROUTE_MAP = [];
26 public static function areSystemScopesEnabled()
28 return self::$systemScopesEnabled;