Skip to content

Commit

Permalink
Catch if TESTING not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Jan 4, 2024
1 parent ecd186d commit 06303e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Policies.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 06303e3

Please sign in to comment.