Skip to content

Commit

Permalink
fixup! 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 06303e3 commit 6cf128b
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 (!(defined('TESTING') && TESTING == true)) {
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 6cf128b

Please sign in to comment.