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 - mysql -u piler -ppiler123 piler1 < /usr/share/piler/db-mysql.sql
- cd unit_tests - cd unit_tests
- ./run.sh - ./run.sh
- cd .. - cd ../webui
- phpunit - phpunit

View File

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

View File

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