Skip to content
Snippets Groups Projects
Commit ec81a813 authored by Shani's avatar Shani
Browse files

Autoload BillRun classes in Codeception unit tests suite (BRCD-4346)

parent 315696d7
Branches
Tags
No related merge requests found
<?php
ini_set('yaf.use_spl_autoload', 1); // to not interrupt Codeception
defined('APPLICATION_PATH') || define('APPLICATION_PATH', '.');
require_once(APPLICATION_PATH . DIRECTORY_SEPARATOR . 'conf' . DIRECTORY_SEPARATOR . 'config.php');
$app = new Yaf_Application(BILLRUN_CONFIG_PATH);
$app->bootstrap();
Yaf_Loader::getInstance(APPLICATION_PATH . '/application/modules/Billapi')->registerLocalNamespace("Models");
Yaf_Loader::getInstance()->import(APPLICATION_PATH . '/vendor/autoload.php');
\ No newline at end of file
......@@ -3,8 +3,10 @@
# Suite for unit or integration tests.
actor: UnitTester
bootstrap: ../_support/Helper/BillRun/bootstrap.php
modules:
enabled:
- Asserts
- \Helper\Unit
# - Asserts
# - \Helper\Unit
extends: _support/Helper/BillRun.php
step_decorators: ~
\ No newline at end of file
<?php
require_once 'library/Billrun/Util.php';
class GetInTest extends \Codeception\Test\Unit
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment