Added initial service controller test. Fixed auth action for testability (return instead of exit). Exit approach seemed to be broken in this case, since always a 200 HTTP status code was returned.
Issue 947: Reset the navigation singleton on every bootstrap; load component helper classes iff not already available
Added auth action tests; Refactored and fixed auth action in service controller
- add: make section for easier use of phpunit (make test and go!)
- add: TestSuite which contains the TestCases
- add: TestSuite
- chg: Update Zend Framework Version from 1.9.4 to 1.11.1 (contains a bugfix which is needed for UnitTesting)
- chg: Add if's before constant definitions because of PHPUnit which tries to re-define the constants -> errors
- add: 2 tests for sparqlAction
- add: missing HttpResponseCodes
- add: try catch during questioning the model because of a possible Erfurt_Ac_Exception exception
- del: some exits
- del: Test var_dump
+ erfurt test target
+ Zend path
Started refactoring of test environment: renamed test_base to TestHelper, Modified ServiceControllerTest to enable direct execution; Needs to be documented
Modified index controller test to include TestHelper; removed hashbang, since it was echoed, when test suite is executed
Started testing and refactoring of index controller; Makefile modified test command
Added controller test suite
merge with default
Modified OntoWikiTest to fit new test structure
- chg: correct make test command in Makefile (Tests => tests)
- chg: rename sparqlNoAuthWithQuery to sparqlNoAuthWithInvalidQuery
- add: sparqlAction-Test with Query "SELECT ?s WHERE { ?s ?p ?o. }" => Result as XML (#1)
- add: sparqlAction-Test with Query "SELECT ?s WHERE { ?s ?p ?o. }" => Result as JSON (#2)
- both Tests #1 and #2 are questioning an empty/not existable/invisible knowledge base and getting no result, right?
- add: OntoWiki_TestSuite
- add: OntoWiki_TestSuite to tests/TestSuite.php
- port: OntoWiki/MessageTest.php into new Test-System
- add: MessageTest to OntoWiki_TestSuite