Philipp Holzer
f148dcabc4
CacheLockDriverTest Fixings
...
- Changing test behaviour
2018-09-05 22:16:23 +02:00
Philipp
2838e4ebaf
Automatic Install Tests & Doku ( #5674 )
...
* Automatic Installation Testing
- New dev-library "mikey179/vfsStream"
- created "reload" method for App-Reloads
- ConsoleTest now using virtual directory
- Adding Automatic Installation Tests
- Fixing some probable install-failures
* Updating README for Automatic Installation
* Updating README for Automatic Installation
* Bugfix normal installation
* Fixing copying of config files
2018-08-27 00:15:55 -04:00
Philipp
4eaeea7889
Config Console Tests ( #5621 )
...
* Config Console Tests
- `MultiUseConsole` is now a testable console
- `ConsoleTest` is a abstract TestClass for console tests
- `ConfigConsoleTest` tests the config console commands
* disable preserve global state because of smarty
* fixed requires & basepath für Console Test
2018-08-17 19:41:46 +00:00
Hypolite Petovan
5f48b98505
Skip DB tests if MYSQL_* environment variables are missing
2018-08-04 16:35:31 +02:00
Roland Häder
bf87ad4fcf
Fixed E_NOTICE in listing worker queue and new utilities class added ( #5521 )
...
* Fixes for E_NOTICE in workqueue:
- introduced class `Friendica\Util\Arrays` which will hold static methods for
handling arrays that cannot be done with PHP's functions, like implode() on
multi-dimensional arrays
- rewrote old-school for() loop to foreach()
* Added intial unit test with some tests on empty delimiters and/or sinle and
multi-dim array.
* Added test for for 3-dimensional arrays, thanks to nupplaphil's feedback.
2018-07-30 21:24:26 -04:00
Michael Vogel
2d0a749734
Merge pull request #5431 from MrPetovan/task/5410-rename-database-methods
...
Move DBA to src/ part 3.1: Rename DBA methods
2018-07-23 15:18:58 +02:00
Philipp
cd52d0b3e9
Using getopt for CLI arguments ( #5446 )
...
* Adding Argument class to Friendica
* Adding Argument class to Friendica
* Adding Argument class to Friendica
* fixing arguments for `spawnWorker`
* Adding `use Friendica\BaseObject` to `ApiTest.php`
* Refactoring the argument-usages of Friendica
* Refactoring the argument-usages of Friendica
* removing superfluous []
2018-07-23 07:40:52 -04:00
Hypolite Petovan
cdd8e4fd9d
Rename DBA::get_db to DBA::getConnection
...
- Rename DBA::$db to DBA::$connection
2018-07-22 19:28:29 -04:00
Philipp
c5cbf565d9
DBStructure enhancements ( #5437 )
...
* Adding DBStructure enhancements
- Added DBStructure::rename()
- Added DBStructure::existTable()
- Added DBStructure::existColumn()
(cherry picked from commit 4ae06ec)
* Adding `pre_update_1279` method
- Added DBStructure::rename()
- Added DBStructure::existTable()
- Added DBStructure::existColumn()
(cherry picked from commit 8496d84)
* code standards
(cherry picked from commit 551d09b)
* simplify to `empty` instead `is_null`
(cherry picked from commit ce68835)
2018-07-21 08:43:43 -04:00
Hypolite Petovan
af6dbc654f
Rename Friendica\Database\dba to Friendica\Database\DBA
2018-07-20 08:19:26 -04:00
Hypolite Petovan
daa1177e3a
Update use statement lists with new Friendica\Database\dba class
...
- Remove unused use statement
- Remove superfluous use statements (classes in the same namespace)
- Add missing use statements
2018-07-19 22:15:21 -04:00
Pierre Rudloff
6e1ed0b0d3
Fix tests ( #5400 )
...
* Avoid argc side-effects
* Fix undefined array keys in JITConfigAdapter::set()
* Avoid argv side effects in ApiTest
2018-07-18 16:30:55 -04:00
Pierre Rudloff
b057906bed
Fix silent exit in ApiTest::testApiMediaUploadWithMedia() ( #5398 )
2018-07-18 15:36:51 -04:00
Philipp
2d0446bd38
simplifying unittests ( #5395 )
...
* simplifying unittests
- use @requires instead class_exist
- define @small and @medium
* simplifying unittests
- removed unnecessary throwings
2018-07-18 15:04:18 -04:00
Hypolite Petovan
820afa2284
Replace global $a with BaseObject::getApp()
2018-07-16 19:38:17 -04:00
Hypolite Petovan
5906c7e013
Remove api test pconfig debug
2018-07-16 19:38:17 -04:00
Hypolite Petovan
478b42e88f
Fix debug
2018-07-16 19:38:16 -04:00
Hypolite Petovan
6987129a00
Add yet more pconfig debug to testApiGetUserWithCustomFrioSchema
2018-07-16 19:38:16 -04:00
Hypolite Petovan
4efcd47807
Put base test config in Yaml dataset
2018-07-16 19:38:16 -04:00
Hypolite Petovan
8fe9a46ccf
Set system.hostname in test bootstrap
2018-07-16 19:38:16 -04:00
Hypolite Petovan
59c38d1b73
Move meaningful message inside Exception thrown in Cache tests
2018-07-16 19:38:16 -04:00
Hypolite Petovan
47992d06ce
Restore system.url declaration in tests
2018-07-16 19:38:16 -04:00
Hypolite Petovan
12e34cc5fb
Remove direct App instantiation from tests
2018-07-16 19:38:16 -04:00
Hypolite Petovan
fc5d8e41a4
[tests] Prevent bin/worker.php from being called during tests
2018-07-16 19:38:16 -04:00
Hypolite Petovan
66ac16e101
Fix set_baseurl() notice messages in worker during tests
2018-07-16 19:38:15 -04:00
Hypolite Petovan
32418e8660
Fix test bootstrap namespace issue
2018-07-16 19:38:15 -04:00
Hypolite Petovan
1f1a3930b2
Instantiate the App in test bootstrap
...
- Remove wrong App instantiation in Lock test
2018-07-16 19:38:15 -04:00
Hypolite Petovan
3433c22116
Remove .htconfig.php reference from DatabaseTest
2018-07-16 19:38:15 -04:00
Hypolite Petovan
5196ea22ff
Fix Database connexion in tests
2018-07-16 19:38:15 -04:00
Philipp Holzer
e5c767d809
a new unittest for prefix
2018-07-09 22:15:11 +02:00
Philipp Holzer
8c2258dd2e
switched back to origin TestCase structure
2018-07-09 21:48:47 +02:00
Philipp Holzer
dbc38d4263
improved unittest
2018-07-09 21:40:38 +02:00
Philipp Holzer
c829e43725
moved get_guid to System::createGUID
2018-07-09 21:38:16 +02:00
Philipp Holzer
be83696f02
Redis serialize instead of json because of objects
2018-07-08 13:35:28 +02:00
Philipp Holzer
ff24d0d567
code-standards wrap operators with spaces
2018-07-07 20:51:08 +02:00
Philipp Holzer
3cde7a3e4b
Fixed & added unittests
2018-07-07 20:35:42 +02:00
Philipp Holzer
065b83d148
Fixed memcache & unittests
2018-07-07 20:07:07 +02:00
Philipp Holzer
80a4e6263f
Added Unittests for cache
...
fixed Lock & Cache bugs
2018-07-07 19:46:16 +02:00
Philipp Holzer
6ecaa5b15a
copy&paste error for memcached unittest
2018-07-07 18:12:17 +02:00
Philipp Holzer
1ffe0cfd81
Added Lock Unittests & Bugfixings
...
Added Redis Lock Unittests
Added Memcached Lock Unittests
Fixed a bug in dba
Fixed a bug in RedisLock
2018-07-07 16:15:03 +02:00
Michael Vogel
3eec97aa6e
Merge pull request #5314 from MrPetovan/task/4889-fix-tests
...
Fix tests after enabling PHP Notices
2018-07-06 22:14:01 +02:00
Philipp Holzer
e41e7d2edd
Fixings
...
- fixed test for semaphore
- fixed some issues
- changed namespace in Tests back to "src/"
- changed namings
2018-07-05 20:57:31 +02:00
Philipp Holzer
906bb25972
code standards / simplifications
2018-07-05 07:59:56 +02:00
Hypolite Petovan
c60d85329c
Rename language to lang in test data as well
2018-07-04 17:55:06 -04:00
Philipp Holzer
aac94d1d74
Adding multihost - locking
...
Adding Unit-Tests for it
2018-07-04 23:37:22 +02:00
Hypolite Petovan
cdab9b4cd2
Add missing author-link property to testFormatItems*
2018-07-04 00:54:53 -04:00
Hypolite Petovan
3a89ab199b
Fix tests error/failures
...
- Fix undenifed index: author-network notice
- Fix assertion mismatch in testApiDirectMessagesNewWithUserId
2018-07-04 00:09:17 -04:00
Hypolite Petovan
b2b984433c
Fix dataset ids for otheruser/frienduser
...
Remove debug
2018-07-03 23:37:52 -04:00
Hypolite Petovan
675333f246
Bleh
2018-07-03 23:27:12 -04:00
Hypolite Petovan
3e9ff5ef6e
Move debug
2018-07-03 23:20:33 -04:00
Hypolite Petovan
8ad41d4f15
Add debug to database test
2018-07-03 23:14:03 -04:00
Hypolite Petovan
b256f5cf2c
Fix missing env variable replacement
2018-07-03 22:46:45 -04:00
Hypolite Petovan
40d911c284
Use correct App mode to disable logging
...
- Restore normal mode after DBStructure update
- Improve error message in case of missing DB connection
2018-07-03 21:24:16 -04:00
Hypolite Petovan
125f7beb63
Add creation/deletion of separate .htconfig.php used for tests
2018-07-03 21:22:50 -04:00
Hypolite Petovan
d31e3b16ff
Fix boolean values in test data
2018-07-03 21:22:10 -04:00
Hypolite Petovan
eaa3e4d157
Use MYSQL_* environment variables for tests
...
- Prevent `.htconfig.php` override when present during tests.
2018-07-03 08:26:44 -04:00
Hypolite Petovan
4752ea1374
Add .htconfig.php in test setUp
2018-07-03 00:02:02 -04:00
Hypolite Petovan
9cce1f70f9
Add .htconfig.php in test setUp
2018-07-02 23:10:33 -04:00
Hypolite Petovan
39b61da05d
Fix last undefined variable/index messages in tests
2018-07-02 07:49:44 -04:00
Hypolite Petovan
f91e7c9f17
Revert using System::baseurl() for mock user nurls
2018-07-02 07:49:40 -04:00
Hypolite Petovan
18eb13a598
Fix API test cases
...
- Add meaningful app->argv/c
- Add support for subfolder install
- Add meaningful image URL from placeholder.com
- Fix incomplete test testApiHelpTestWithXml()
- Use $this->frienduser for direct messages tests
- Fix dataset to have an actual contact relationship
2018-07-02 07:49:29 -04:00
Hypolite Petovan
a380bcd1c1
Fix more undefined variable/index notice in tests
2018-07-02 07:45:25 -04:00
Hypolite Petovan
209510e970
Replace PHP_EOL with \n to conform to code behavior on Windows in tests
2018-07-02 07:45:18 -04:00
Hypolite Petovan
a329ce5b50
Fix $called_api expecting at least 2 elements in tests
2018-07-02 07:45:11 -04:00
Hypolite Petovan
6776c4e3f9
Fix some undefined variable/index notices in tests
2018-07-02 07:44:55 -04:00
Michael
eca43895e1
Fixing tests
2018-06-09 21:46:35 +00:00
Michael
defd3d15b6
Possibly fixed test
2018-06-09 20:39:40 +00:00
Michael
f316e96bd1
Now the dataset is said to be valid again.
2018-06-03 16:11:05 +00:00
Michael
09c1b44381
Someone else has to fix this
2018-06-03 11:42:23 +00:00
Michael
e232ccf9e0
Trying around ...
2018-06-03 11:38:03 +00:00
Michael
946bfd79ff
Just one more ...
2018-06-03 11:29:09 +00:00
Michael
9ade6c2b33
The testdata hadn't contained public contacts
2018-06-03 11:20:22 +00:00
Michael
e48b2a3dad
Reverting it ...
2018-06-03 11:12:09 +00:00
Michael
058d755372
I guess I broke the test tool :-)
2018-06-03 11:07:24 +00:00
Michael
e392491e94
Next try ;-)
2018-06-03 10:58:03 +00:00
Michael
b33578c137
Additional data for the test tool
2018-06-03 10:47:40 +00:00
Michael
28678c0fad
Reverting the last test
2018-06-03 10:22:10 +00:00
Michael
96d170c9d8
Trying to understand the test tool
2018-06-03 10:04:02 +00:00
Pierre Rudloff
e7fceb8e61
Make DatabaseTest::getConnection() return the correct database name to PHPUnit
2018-05-16 13:15:28 +02:00
Pierre Rudloff
f3ca3b2bd5
Add some explanation in DatabaseTest::getConnection()
2018-05-16 13:14:50 +02:00
Pierre Rudloff
f7064be41f
Remove useless line breaks in DatabaseTest
2018-05-16 13:09:05 +02:00
Pierre Rudloff
5ece452a32
Remove unused class import in DatabaseTest
2018-05-16 13:08:17 +02:00
Pierre Rudloff
6a654df444
Add a new contact to test rel=2 in tests
...
See https://github.com/friendica/friendica/pull/5022#discussion_r187416029
2018-05-10 22:21:55 +02:00
Pierre Rudloff
3195d6e125
Add API tests
2018-05-10 19:12:00 +02:00
Tobias Diekershoff
bcc298204e
use strlen instead of count(php7.2 fails)
2018-04-23 09:37:56 +02:00
Tobias Diekershoff
6e313736f4
remove comment
2018-04-23 09:37:06 +02:00
Tobias Diekershoff
f1535c0f01
use strlen instead of count as above (php7.2 fails)
2018-04-23 09:35:12 +02:00
Tobias Diekershoff
61a380975b
there are more then 1 test ATM
2018-04-23 08:53:46 +02:00
Tobias Diekershoff
c31a54175d
comment out use clause
2018-04-23 08:47:42 +02:00
Tobias Diekershoff
0a58637ace
phpunit compat 5.6 vs 7.x
2018-04-23 08:42:13 +02:00
Pierre Rudloff
e695e1060f
Regroup old tests in the TextTest class
2018-04-10 02:21:33 +02:00
Pierre Rudloff
9a40f17257
Remove old tests
...
Add tests for the BaseObject class
2018-04-09 23:03:29 +02:00
Hypolite Petovan
1d427aa214
Standards: Remove EOF closing PHP tags
2017-05-02 23:36:56 -04:00
Hypolite Petovan
7b352f3f74
Revert "Coding convention applied - part 1"
2017-03-21 12:02:59 -04:00
Roland Häder
c2d8738285
added spaces (coding convention)
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2017-03-19 00:51:54 +01:00
Roland Häder
3e701b90ac
Continued rewriting:
...
- use dba::is_result() everywhere (where I found the old, bad way)
- converted some spaces -> tabs for code
- converted some CRLF -> LF as mixures of both is not good
Signed-off-by: Roland Haeder <roland@mxchange.org>
2016-05-01 14:24:44 +02:00
rabuzarus
3df5c17124
reformat todo according to doxygen style
2015-12-25 23:17:34 +01:00
friendica
78579627ce
rev update, fix autoname test "random" failure
2012-04-26 01:33:41 -07:00
friendica
fbdb8fc43a
fix tags test with new url
2012-04-24 01:02:22 -07:00
friendica
e575d67969
had arg order backwards
2012-04-07 02:23:11 -07:00
friendica
7a7102618b
try assertContains
2012-04-07 02:21:55 -07:00
friendica
cf2d8ef7a6
tag tests cont.
2012-04-07 02:11:56 -07:00
friendica
f30146b521
fix autonamenegativelength test
2012-04-07 01:20:38 -07:00
friendica
3a1c78bd75
some work on tests
2012-04-07 01:04:45 -07:00
Alexander Kampmann
355c42cb30
Merge branch 'master' of https://github.com/friendica/friendica
...
Conflicts:
include/config.php
update.php
2012-04-05 13:39:15 +02:00
Alexander Kampmann
f208e7af36
tests for the template engine
2012-03-22 12:43:03 +01:00
Alexander Kampmann
29ade1d9b9
another test for xmlify
2012-03-15 10:51:22 +01:00
Alexander Kampmann
509ed2604f
splitted tests into several files
2012-03-14 12:54:49 +01:00
Alexander Kampmann
c0c98206ef
removed done TODO
2012-03-14 12:31:25 +01:00
Alexander Kampmann
509532d168
get_tags tests corrected. They test for the right things now.
2012-03-14 12:30:52 +01:00
Alexander Kampmann
bce3bfff38
get tags test improved
2012-03-12 13:59:00 +01:00
Alexander Kampmann
f8042d0445
splitted test cases.
2012-03-09 12:57:11 +01:00
Alexander Kampmann
21589c5ece
changed a test string
2012-03-09 12:18:37 +01:00
Alexander Kampmann
f84c191f8d
added some tests
2012-03-09 12:16:58 +01:00
Alexander Kampmann
185fcd0701
better tests
2012-03-08 17:43:12 +01:00
Alexander Kampmann
fbc017cdba
added test blueprints, fixed? encoding issues
2012-03-05 22:22:10 +01:00