Hello again,
I get tests working, if I comment a piece of code that is causing a
fatal error.
PHP Fatal error: Call to a member function getSubCats() on a non-object
in /Applications/XAMPP/xamppfiles/htdocs/oxid/tests/unit/utf8Test.php on
line 528
If I comment lines 527-532 in utf8Test.php, I can finally run the tests
with this result
FAILURES!
Tests: 90, Assertions: 266, Failures: 2, Errors: 5.
I have demodata in this shop so categories with subcategories are there.
Maybe this is a bug?
Best regards
Arturas Sevcenko <mailto:arturas.sevce...@oxid-esales.com>
22. Januar 2015 14:53
Hi,
You only need to setup config.inc.php and have a working shop,
reachable via URL.
Then to run the tests:
cd /path/to/oxideshop/tests
phpunit --no-configuration --bootstrap bootstrap.php AllTestsUnit
On 2015.01.22 15:04, Alex Schwarz wrote:
--
Arturas Sevcenko
Software Developer
arturas.sevce...@oxid-esales.com
Fon +49 761 36889-0
Fax +49 761 36889-29
www.oxid-esales.com
OXID eSales AG
Bertoldstraße 48
79098 Freiburg
Deutschland
Vorstand: Roland Fesenmayr (Vorsitzender), Andrea Seeger, Dr. Marcus
Klosterberg
Vorsitzender des Aufsichtsrats: Michael Schlenk, Sitz: Freiburg
Amtsgericht Freiburg i. Br., HRB 701648, USt-IdNr.: DE231450866
_______________________________________________
dev-general mailing list
dev-general@lists.oxidforge.org
http://dir.gmane.org/gmane.comp.php.oxid.general
Alex Schwarz <mailto:alex.schw...@active-value.de>
22. Januar 2015 14:04
Hi Roman,
thanks for explaining the error message ;-)
So i need to configure the bootstrap.php shipped with OXID? I thought
this is not neccessary as the config.inc.php gets included with
working database data?
Best regards
Roman Allenstein (Spark5 GmbH) <mailto:roman.allenst...@spark5.de>
22. Januar 2015 14:01
EXCEPTION_CONNECTION_NODB means "No DB connection"
First you should set up a working bootstrap.php.
Greets
Roman
Alex Schwarz <mailto:alex.schw...@active-value.de>
22. Januar 2015 13:59
Hello everyone,
I just got into extension certification and wanted to start with
running the tests provided with OXID (CE), but I can't get it work.
What I did:
- downloaded fresh CE 4.9.2 from repository
- installed & configured it (shop is working)
- try to run phpunit with
phpunit --bootstrap tests/bootstrap.php tests/AllTestUnit.php
But all I get are Fatal Errors and Notices. Actually
Fatal error: Uncaught exception 'oxConnectionException' with message
'EXCEPTION_CONNECTION_NODB' in
/Applications/XAMPP/xamppfiles/htdocs/oxid/source/core/oxdb.php:371
I've read the documents about Certification and Unit Testing in oxidforge.
Enviroment: OS X Yosemite, XAMPP 1.8.3-5, latest phpunit version
Any ideas?
_______________________________________________
dev-general mailing list
dev-general@lists.oxidforge.org
http://dir.gmane.org/gmane.comp.php.oxid.general