diff --git a/classes/Policies.php b/classes/Policies.php index 74a894f8e0..20b49e45a1 100644 --- a/classes/Policies.php +++ b/classes/Policies.php @@ -31,7 +31,7 @@ class Policies { public function __construct($policy_id = null) { $this->db = new \ParlDB; - if (TESTING) { + if (!(defined('TESTING') && TESTING == true)) { $policy_data = json_decode(file_get_contents(dirname(__FILE__) . '/../tests/policies.json'), true); } else { $policy_data = json_decode(file_get_contents(RAWDATA . '/scrapedjson/policies.json'), true);