Fixed bitbucket pipeline

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2022-03-14 20:58:44 +01:00
parent 683327c8bb
commit b6f8834fe8
6 changed files with 7 additions and 7 deletions

View File

@ -18,5 +18,5 @@ pipelines:
- mysql -u piler -ppiler123 piler1 < /usr/share/piler/db-mysql.sql
- cd unit_tests
- ./run.sh
- cd ..
- cd ../webui
- phpunit

View File

@ -2,11 +2,11 @@
<phpunit colors="true">
<testsuites>
<testsuite name="Application Test Suite">
<directory>./unit_tests/php</directory>
<directory>./tests</directory>
</testsuite>
</testsuites>
<php>
<env name="DIR_BASE" value="webui/" />
<env name="TEST_FILES_DIR" value="test_files/" />
<env name="DIR_BASE" value="./" />
<env name="TEST_FILES_DIR" value="../test_files/" />
</php>
</phpunit>

View File

@ -2,9 +2,9 @@
use PHPUnit\Framework\TestCase;
include_once("webui/system/model.php");
include_once("webui/system/misc.php");
include_once("webui/model/health/health.php");
include_once("system/model.php");
include_once("system/misc.php");
include_once("model/health/health.php");
final class FormatTest extends TestCase
{