From fe28b3cb0780a3d53496194d1a7d099ca6e9fd58 Mon Sep 17 00:00:00 2001 From: CyberVitexus Date: Wed, 20 Nov 2024 14:39:21 +0100 Subject: [PATCH] #53 - Unit Test complete reset (all green or commented now) --- .gitignore | 1 + Makefile | 10 - composer.json | 4 +- phpunit.xml | 4 +- src/AbraFlexi/RO.php | 4 +- tests/AbraFlexi/ActionsTest.php | 41 - tests/AbraFlexi/AdresarTest.php | 221 -- tests/AbraFlexi/BankaTest.php | 245 -- tests/AbraFlexi/CenikTest.php | 161 - tests/AbraFlexi/ChangesTest.php | 125 - tests/AbraFlexi/CompanyTest.php | 173 - tests/AbraFlexi/DateTest.php | 53 - tests/AbraFlexi/DateTimeTest.php | 65 - tests/AbraFlexi/DodavatelTest.php | 101 - tests/AbraFlexi/DodavatelskaSmlouvaTest.php | 161 - tests/AbraFlexi/ExceptionTest.php | 77 - tests/AbraFlexi/FakturaPrijataTest.php | 221 -- tests/AbraFlexi/FakturaVydanaPolozkaTest.php | 89 - tests/AbraFlexi/FakturaVydanaTest.php | 341 -- tests/AbraFlexi/FormatsTest.php | 89 - tests/AbraFlexi/FunctionsTest.php | 221 -- tests/AbraFlexi/HooksTest.php | 89 - tests/AbraFlexi/InterniDokladTest.php | 209 -- tests/AbraFlexi/KontaktTest.php | 113 - .../ObjednavkaPrijataPolozkaTest.php | 89 - tests/AbraFlexi/ObjednavkaPrijataTest.php | 209 -- tests/AbraFlexi/PokladnaTest.php | 125 - tests/AbraFlexi/PokladniPohybTest.php | 209 -- tests/AbraFlexi/PrilohaTest.php | 149 - tests/AbraFlexi/RWTest.php | 377 -- tests/AbraFlexi/SkladovyPohybPolozkaTest.php | 101 - tests/AbraFlexi/SkladovyPohybTest.php | 149 - tests/AbraFlexi/SmlouvaTest.php | 113 - tests/AbraFlexi/StitekTest.php | 113 - tests/AbraFlexi/UdalostTest.php | 101 - tests/bootstrap.php | 2 +- tests/src/AbraFlexi/ActionsTest.php | 2 +- tests/src/AbraFlexi/AdresarTest.php | 213 +- tests/src/AbraFlexi/BankaTest.php | 289 +- tests/src/AbraFlexi/CenikTest.php | 161 + tests/src/AbraFlexi/ChangesTest.php | 170 +- tests/src/AbraFlexi/CompanyTest.php | 174 + tests/src/AbraFlexi/DateTest.php | 31 +- tests/src/AbraFlexi/DateTimeTest.php | 28 +- tests/src/AbraFlexi/DodavatelTest.php | 120 +- .../src/AbraFlexi/DodavatelskaSmlouvaTest.php | 161 + .../{ => src}/AbraFlexi/EvidenceListTest.php | 0 tests/src/AbraFlexi/ExceptionTest.php | 77 + tests/src/AbraFlexi/FakturaPrijataTest.php | 221 ++ .../AbraFlexi/FakturaVydanaPolozkaTest.php | 89 + tests/src/AbraFlexi/FakturaVydanaTest.php | 683 ++-- tests/src/AbraFlexi/FormatsTest.php | 80 +- tests/src/AbraFlexi/FunctionsTest.php | 233 +- tests/src/AbraFlexi/HooksTest.php | 89 + tests/src/AbraFlexi/InterniDokladTest.php | 209 ++ tests/src/AbraFlexi/KontaktTest.php | 196 +- tests/{ => src}/AbraFlexi/NastaveniTest.php | 0 .../ObjednavkaPrijataPolozkaTest.php | 89 + tests/src/AbraFlexi/ObjednavkaPrijataTest.php | 209 ++ tests/src/AbraFlexi/PokladnaTest.php | 125 + tests/src/AbraFlexi/PokladniPohybTest.php | 209 ++ tests/src/AbraFlexi/PrilohaTest.php | 149 + tests/src/AbraFlexi/ROTest.php | 3146 +++++++---------- tests/src/AbraFlexi/RWTest.php | 719 ++-- .../AbraFlexi/RadaPokladniPohybTest.php | 46 +- tests/{ => src}/AbraFlexi/RelationTest.php | 46 +- tests/{ => src}/AbraFlexi/RelationsTest.php | 0 tests/{ => src}/AbraFlexi/ReportTest.php | 22 +- tests/{ => src}/AbraFlexi/RootTest.php | 46 +- .../{ => src}/AbraFlexi/SkladovaKartaTest.php | 0 .../AbraFlexi/SkladovyPohybPolozkaTest.php | 101 + tests/src/AbraFlexi/SkladovyPohybTest.php | 149 + .../{ => src}/AbraFlexi/SkupinaFiremTest.php | 0 tests/src/AbraFlexi/SmlouvaTest.php | 113 + tests/{ => src}/AbraFlexi/StatusTest.php | 46 +- tests/src/AbraFlexi/StitekTest.php | 113 + tests/{ => src}/AbraFlexi/StromCenikTest.php | 0 tests/{ => src}/AbraFlexi/StromTest.php | 0 .../{ => src}/AbraFlexi/UcetniObdobiTest.php | 0 tests/src/AbraFlexi/UdalostTest.php | 101 + .../{ => src}/AbraFlexi/VyrobniCisloTest.php | 0 tests/{ => src}/AbraFlexi/ZurnalTest.php | 46 +- 82 files changed, 5489 insertions(+), 7767 deletions(-) delete mode 100644 tests/AbraFlexi/ActionsTest.php delete mode 100644 tests/AbraFlexi/AdresarTest.php delete mode 100644 tests/AbraFlexi/BankaTest.php delete mode 100644 tests/AbraFlexi/CenikTest.php delete mode 100644 tests/AbraFlexi/ChangesTest.php delete mode 100644 tests/AbraFlexi/CompanyTest.php delete mode 100644 tests/AbraFlexi/DateTest.php delete mode 100644 tests/AbraFlexi/DateTimeTest.php delete mode 100644 tests/AbraFlexi/DodavatelTest.php delete mode 100644 tests/AbraFlexi/DodavatelskaSmlouvaTest.php delete mode 100644 tests/AbraFlexi/ExceptionTest.php delete mode 100644 tests/AbraFlexi/FakturaPrijataTest.php delete mode 100644 tests/AbraFlexi/FakturaVydanaPolozkaTest.php delete mode 100644 tests/AbraFlexi/FakturaVydanaTest.php delete mode 100644 tests/AbraFlexi/FormatsTest.php delete mode 100644 tests/AbraFlexi/FunctionsTest.php delete mode 100644 tests/AbraFlexi/HooksTest.php delete mode 100644 tests/AbraFlexi/InterniDokladTest.php delete mode 100644 tests/AbraFlexi/KontaktTest.php delete mode 100644 tests/AbraFlexi/ObjednavkaPrijataPolozkaTest.php delete mode 100644 tests/AbraFlexi/ObjednavkaPrijataTest.php delete mode 100644 tests/AbraFlexi/PokladnaTest.php delete mode 100644 tests/AbraFlexi/PokladniPohybTest.php delete mode 100644 tests/AbraFlexi/PrilohaTest.php delete mode 100644 tests/AbraFlexi/RWTest.php delete mode 100644 tests/AbraFlexi/SkladovyPohybPolozkaTest.php delete mode 100644 tests/AbraFlexi/SkladovyPohybTest.php delete mode 100644 tests/AbraFlexi/SmlouvaTest.php delete mode 100644 tests/AbraFlexi/StitekTest.php delete mode 100644 tests/AbraFlexi/UdalostTest.php create mode 100644 tests/src/AbraFlexi/CenikTest.php create mode 100644 tests/src/AbraFlexi/CompanyTest.php create mode 100644 tests/src/AbraFlexi/DodavatelskaSmlouvaTest.php rename tests/{ => src}/AbraFlexi/EvidenceListTest.php (100%) create mode 100644 tests/src/AbraFlexi/ExceptionTest.php create mode 100644 tests/src/AbraFlexi/FakturaPrijataTest.php create mode 100644 tests/src/AbraFlexi/FakturaVydanaPolozkaTest.php create mode 100644 tests/src/AbraFlexi/HooksTest.php create mode 100644 tests/src/AbraFlexi/InterniDokladTest.php rename tests/{ => src}/AbraFlexi/NastaveniTest.php (100%) create mode 100644 tests/src/AbraFlexi/ObjednavkaPrijataPolozkaTest.php create mode 100644 tests/src/AbraFlexi/ObjednavkaPrijataTest.php create mode 100644 tests/src/AbraFlexi/PokladnaTest.php create mode 100644 tests/src/AbraFlexi/PokladniPohybTest.php create mode 100644 tests/src/AbraFlexi/PrilohaTest.php rename tests/{ => src}/AbraFlexi/RadaPokladniPohybTest.php (51%) rename tests/{ => src}/AbraFlexi/RelationTest.php (52%) rename tests/{ => src}/AbraFlexi/RelationsTest.php (100%) rename tests/{ => src}/AbraFlexi/ReportTest.php (68%) rename tests/{ => src}/AbraFlexi/RootTest.php (52%) rename tests/{ => src}/AbraFlexi/SkladovaKartaTest.php (100%) create mode 100644 tests/src/AbraFlexi/SkladovyPohybPolozkaTest.php create mode 100644 tests/src/AbraFlexi/SkladovyPohybTest.php rename tests/{ => src}/AbraFlexi/SkupinaFiremTest.php (100%) create mode 100644 tests/src/AbraFlexi/SmlouvaTest.php rename tests/{ => src}/AbraFlexi/StatusTest.php (52%) create mode 100644 tests/src/AbraFlexi/StitekTest.php rename tests/{ => src}/AbraFlexi/StromCenikTest.php (100%) rename tests/{ => src}/AbraFlexi/StromTest.php (100%) rename tests/{ => src}/AbraFlexi/UcetniObdobiTest.php (100%) create mode 100644 tests/src/AbraFlexi/UdalostTest.php rename tests/{ => src}/AbraFlexi/VyrobniCisloTest.php (100%) rename tests/{ => src}/AbraFlexi/ZurnalTest.php (52%) diff --git a/.gitignore b/.gitignore index 88a7581e..3e7d38f1 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,4 @@ composer.lock /.build/ +/tmp/ diff --git a/Makefile b/Makefile index f314d881..5fe431f6 100644 --- a/Makefile +++ b/Makefile @@ -56,10 +56,6 @@ pretest: composer --ansi --no-interaction update php -f tests/PrepareForTest.php -phpunit: - composer update - vendor/bin/phpunit --bootstrap testing/bootstrap.php - deb: dpkg-buildpackage -A -us -uc @@ -67,10 +63,6 @@ rpm: rpmdev-bumpspec --comment="Build" --userstring="Vítězslav Dvořák " flexipeehp.spec rpmbuild -ba flexipeehp.spec -verup: - git commit debian/composer.json debian/version debian/revision -m "`cat debian/version`-`cat debian/revision`" - git push origin master - release: echo Release v$(nextversion) dch -v $(nextversion) `git log -1 --pretty=%B | head -n 1` @@ -78,8 +70,6 @@ release: git commit -a -m "Release v$(nextversion)" git tag -a $(nextversion) -m "version $(nextversion)" - - dimage: docker build -t vitexsoftware/flexipeehp . diff --git a/composer.json b/composer.json index 59caef84..9914e320 100644 --- a/composer.json +++ b/composer.json @@ -28,8 +28,8 @@ "autoload-dev": { "psr-4": { "Test\\Ease\\": "vendor/vitexsoftware/ease-core/tests/src/Ease", - "Test\\AbraFlexi\\": "test/src/AbraFlexi/", - "Test\\": "test/" + "Test\\AbraFlexi\\": "tests/src/AbraFlexi/", + "Test\\": "tests/" } }, "require-dev": { diff --git a/phpunit.xml b/phpunit.xml index 96866538..c1839d28 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,5 +1,5 @@ - + src/AbraFlexi @@ -7,7 +7,7 @@ - ./test + ./tests