29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-06-16 09:02:52 +00:00
Commit Graph

27 Commits

Author SHA1 Message Date
Allon Moritz
7611824c5c
Move API system tests to cypress (#40135)
* tests

* api

* artiucles crud

* banners

* contact

* media

* media

* Remove codeception

* cs

* more traces of codeception

* readd certs

* dependencies

* more deps

* secret

* cs

* better doc

* write

* config workaround

* cs

* revert

* prepare db for api tests

* variable

* revert pool

* end connections

* no limit

* cs

* prefix

* Update tests/cypress/drone-system-run.sh

* run specific specs in drone

* Update tests/README.md

Co-authored-by: Brian Teeman <brian@teeman.net>

* Update tests/cypress/integration/api/com_media/Files.cy.js

Co-authored-by: Brian Teeman <brian@teeman.net>

* Update tests/cypress/integration/api/com_media/Files.cy.js

Co-authored-by: Brian Teeman <brian@teeman.net>

* postgres

* media on postgres

* sign

* cs

* remove more traces

* basic api tests

* cleanup

* path

* run recursive specs

* chmod images folder

* path to cms

* correct dependencies and better cleanup

* cleaner deps

* Update tests/cypress/drone-system-run.sh

Co-authored-by: Brian Teeman <brian@teeman.net>

* missing fields

* stabilize cleanup

* cs

* secret in install test

* order of tests

* optimize cleanup

* cs

* cache the connection

* revert connection cache

* docs

* Rename cypress to system

* lint

* simplification and docs

* docs

* better cleanup

* move

* merge conflict

* remove redundant connect

---------

Co-authored-by: Brian Teeman <brian@teeman.net>
2023-03-20 09:51:42 +01:00
tatankat
c720afab89
Facilitate running tests (#38775)
* Facilitate running tests

* Fix error in doc and improve browseability

* Skip LDAP tests if host is empty

* Fix README numbering

* PR is merged, direct binding is fixed

* Fix default ldap configuration
2023-01-26 13:08:33 +01:00
Allon Moritz
0805889bfb
[4.3] Activate all unit tests as default (#38421) 2022-08-25 11:34:08 -04:00
Hannes Papenberg
b4b63a2da9 [4.0] Add an Integration test suite stub (#25118) 2019-07-11 23:48:37 +01:00
David Neukirchen
772fa72f98 Feature/unit tests (#23986)
* Move unit tests back to repository

* Update config files

* Psr-4 autoload tests

* Namespace JHtmlTests

* Delete unused html test files

* Add base unit test case

* Namespace Cms Tests

* Refactoring JLayoutBaseTest

* Delete JPaginationObjectTest

We do not test constructors! ;-D

* Refactor JToolbarButtonCustomTest

* Remove JToolbarButtonTest

We should not test constructor params and getters/setters

* Refactor JToolbarTests

* Refactor JVersionTest

* Run all library tests in the library suite

* Move JAccessTests to new unit suite

* Refactor JAccessRulesTest

* Add JAccessRuleTest

* Add to string test

* Remove JGrid (Class does not exist anymore)

* Remove JDocumentRendererTest

JDocumentRenderer is abstract class with only a public getter

* Rename tests/unit to tests/Unit

* CS

* Fix path to bootstrap file

* CS

* Re-enable, fix and refactor JDocumentTest

* Refactor and re-enable JBrowserTest

* Refactor and re-enable JObjectTest

* Use Joomla\Tests as root namespace

* Refactor and re-enable JFeedParserAtomTest

* Rename mock

* Namespace JHtmlStringTest

* Refactor and re-enable JFeedParserRssTest

* Refactor and re-enable JFeedEntryTest

* Use assertArrayHasKey

* Improve FeedEntry tests

* Refactor and re-enable JFeedFactoryTest

* Refactor and re-enable JFeedLinkTest

* Rename JFeedLinkTest To FeedLinkTest

* Remove JFeedPersonTest

we dont test simple constructors

* Add expectation

* Refactor and re-enable JFeedParserTest

* CS

* Refactor and re-enable JFeedTest

* Refactor and re-enable JMailHelperTest

* Fix bug in Mail class

* Refactor and re-enable MailTest

* Refactor and re-enable JMicrodataTest

* Remove JPlatformTest

* Remove tmp dir

* Fix namespaces

* Delete JLoaderTest

It heavily depends on filesystem and therefore should be tested with integration tests.
2019-03-10 15:20:06 +01:00
Michael Babker
6901a14eb3 Remove deprecated cache handlers, cleanup cache/session config related to deprecations (#19893) 2018-06-09 16:17:30 +01:00
Allon Moritz
568bf18fcb [4.0] Remove JException (#16967)
* Replace JException with Exception class

* Delete JException class

* Replace in doc blocks

* CS

* Remove traces to legacy folder which doesn't exist anymore

* Fix return types

* Check return types
2018-02-03 22:12:02 +00:00
wilsonge
d4d396007f
Merge commit 'cb79438f5f3622aa5782e9ec5e9667edade62746' into 4.0-dev 2017-08-17 22:31:26 +01:00
wilsonge
5d587b0278
Merge tag '3.7.4' into 4.0-dev 2017-08-14 12:09:56 +01:00
Michael Babker
38390312e0 Update code coverage filter 2017-07-27 17:23:55 -05:00
Robert Deutz
5a1c027e51
Allow custom connection credentials for memcache and redis tests 2017-07-05 12:06:34 +02:00
Michael Babker
3777ca6f62 Update configs and PDO MySQL case 2017-06-01 02:45:58 -05:00
Michael Babker
57c4403fdd Remove ext/mysql database driver (#14545) 2017-03-13 20:08:12 +00:00
Phil Taylor
f282742c6e Email cloaking unit tests (#11462)
* Unit Test init for Email Cloaking

Further work forked from #4071

* Example assertions

* Tidy up, documentation

* Implement a JS to HTML converter to allow easy unit testing of outputs

* Add test for #11378 as an example & more documentation
2016-08-05 16:17:46 +01:00
Michael Babker
7ae08599dc Add support for catching JLog messages on a unit test run 2016-03-20 20:33:35 -04:00
Michael Babker
9524e7b32f Backport JHttp tests from Platform repo, add Apache config to repo to enable future testing 2014-09-16 22:38:31 -04:00
Michael Babker
216b687439 [add] Add support for PDO based connections for MySQL. Closes #4123 2014-08-31 20:30:00 +02:00
Robert Deutz
46ecdc8af0 undo changes (doesn't makes any difference, I know) 2013-08-14 17:29:19 +02:00
Robert Deutz
0284c5bc21 remover database tests under suites/database and added composer self update 2013-08-14 17:10:42 +02:00
Robert Deutz
847829bf9e moving files 2013-08-14 16:37:35 +02:00
Michael Babker
9808d2992c Database Testing Refactor, Added Class, Bug Fix
- Reorganize test file structure to test drivers in isolation
- Add SQLSRV driver tests
- Fixing undefined variable message in SQLite driver
- Adding PostgreSQL Iterator class
2013-08-03 16:32:22 -05:00
Michael Babker
746e15ef50 Tests for JFactory, JLoader, and JPlatform 2013-06-02 21:56:14 -05:00
Michael Babker
8fd73cd7ca Implement Database package tests from the Platform 2013-06-01 20:10:43 -05:00
Michael Babker
919562b791 + Add test framework for FinderIndexer** library 2013-02-22 23:45:02 -06:00
Michael Babker
d0090c20df Fix an error when generating cover coverage. 2012-09-09 22:13:20 +02:00
Rouven Weßling
3886eeac1e Add unit tests for JAdministratorHelper. 2012-09-09 21:23:36 +02:00
Michael Babker
45b442a35c Set up unit tests. 2012-08-20 14:49:22 +02:00