diff --git a/bootstrap/bootstrap.php b/bootstrap/bootstrap.php new file mode 100644 index 0000000..e7f3a23 --- /dev/null +++ b/bootstrap/bootstrap.php @@ -0,0 +1,45 @@ +debug = true; + +global $DB; +$app = \Bitrix\Main\Application::getInstance(); +$con = $app->getConnection(); +$DB->db_Conn = $con->getResource(); + +// "authorizing" as admin +$_SESSION['SESS_AUTH']['USER_ID'] = 1; \ No newline at end of file diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..62ec2f9 --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,19 @@ + + + + + ./src + + + + + + + + + + + + + +