From b6f8834fe8aa85a1d77865e0ad893008ac192776 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Mon, 14 Mar 2022 20:58:44 +0100 Subject: [PATCH] Fixed bitbucket pipeline Signed-off-by: Janos SUTO --- bitbucket-pipelines.yml | 2 +- phpunit.xml => webui/phpunit.xml | 6 +++--- {unit_tests/php => webui/tests}/EmailTest.php | 0 {unit_tests/php => webui/tests}/FormatTest.php | 6 +++--- {unit_tests/php => webui/tests}/ParseMessageTest.php | 0 {unit_tests/php => webui/tests}/SplitMessageTest.php | 0 6 files changed, 7 insertions(+), 7 deletions(-) rename phpunit.xml => webui/phpunit.xml (56%) rename {unit_tests/php => webui/tests}/EmailTest.php (100%) rename {unit_tests/php => webui/tests}/FormatTest.php (91%) rename {unit_tests/php => webui/tests}/ParseMessageTest.php (100%) rename {unit_tests/php => webui/tests}/SplitMessageTest.php (100%) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 468c3398..80914fe2 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -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 diff --git a/phpunit.xml b/webui/phpunit.xml similarity index 56% rename from phpunit.xml rename to webui/phpunit.xml index a940f772..18034cdc 100644 --- a/phpunit.xml +++ b/webui/phpunit.xml @@ -2,11 +2,11 @@ - ./unit_tests/php + ./tests - - + + diff --git a/unit_tests/php/EmailTest.php b/webui/tests/EmailTest.php similarity index 100% rename from unit_tests/php/EmailTest.php rename to webui/tests/EmailTest.php diff --git a/unit_tests/php/FormatTest.php b/webui/tests/FormatTest.php similarity index 91% rename from unit_tests/php/FormatTest.php rename to webui/tests/FormatTest.php index 9b2e85fc..c9714619 100644 --- a/unit_tests/php/FormatTest.php +++ b/webui/tests/FormatTest.php @@ -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 { diff --git a/unit_tests/php/ParseMessageTest.php b/webui/tests/ParseMessageTest.php similarity index 100% rename from unit_tests/php/ParseMessageTest.php rename to webui/tests/ParseMessageTest.php diff --git a/unit_tests/php/SplitMessageTest.php b/webui/tests/SplitMessageTest.php similarity index 100% rename from unit_tests/php/SplitMessageTest.php rename to webui/tests/SplitMessageTest.php