root
b43dd28b7a
closes #6272
2019-01-21 09:12:33 -05:00
5e1ceb57de
Escape global namespaced get_app() calls
...
- Add deprecated status
2019-01-03 21:27:36 -05:00
Michael Vogel
94eca77041
Merge pull request #6315 from MrPetovan/bug/6309-add-fulltext-index-profile
...
Rework mod/match and mod/msearch
2018-12-27 18:04:06 +01:00
acaee626f5
Remove include/ requires that are now done directly from Composer
2018-12-24 09:56:25 -05:00
75e63212d1
Bite by bite ...
2018-12-22 22:56:57 +00:00
6a501d99af
And again tests ...
2018-12-22 22:36:53 +00:00
732308ce6d
Hopefully this fixes the tests again
2018-12-22 22:04:47 +00:00
458981f75c
Replace x() by isset(), !empty() or defaults()
...
- Remove extraneous parentheses around empty() calls
- Remove duplicate calls to intval(), count() or strlen() after empty()
- Replace ternary operators outputting binary value with empty() return value
- Rewrite defaults() without x()
2018-11-30 09:06:22 -05:00
0c21bd488f
Use constants instead of strings for register_policy
2018-11-26 07:40:44 -05:00
c964e193b9
Replace *.ini.php by *.config.php in comments
2018-11-25 01:44:51 -05:00
98d90e131d
Update install to generate config/local.config.php
2018-11-25 01:44:09 -05:00
6eb6cc94c7
Move config/dbstructure.php to config/dbstructure.config.php
2018-11-25 01:14:44 -05:00
503c78e3ef
Another try to make tests run again
2018-11-18 20:59:40 +00:00
68936e8fc0
Possibly fix test
2018-11-18 20:40:10 +00:00
Michael Vogel
d577ab98eb
Merge pull request #6104 from nupplaphil/friendica-6101
...
Finding slow tests
2018-11-10 17:39:42 +01:00
7aae40ae6a
skipping TTL tests
2018-11-09 20:39:47 +01:00
Adam Magness
218f0734be
Rename removeTags to escapeTags
...
rename function and update calls.
2018-11-09 13:29:42 -05:00
Adam Magness
063f0e9cb0
Rename escapeTags to escapeHtml
...
rename function and update calls.
2018-11-09 13:27:58 -05:00
Adam Magness
11cec3229c
Create/Update tests
...
create test for new class, move tests from previous
2018-11-09 08:36:28 -05:00
Adam Magness
916b3e551e
format_network_name calls
...
implement formatNetworkName function
2018-11-08 10:24:47 -05:00
Adam Magness
0e01568ccd
escape_tags calls
...
implement escapeTags function
2018-11-08 10:20:03 -05:00
Adam Magness
a0f65ca7a1
notags calls
...
implement removeTags function
2018-11-08 10:14:37 -05:00
61971287c4
Fixing tests
2018-11-08 08:11:27 +01:00
8ad721988b
Refactoring identities to Model\User::identities
2018-11-08 00:38:55 +01:00
6949841947
Removed unnecessary function
2018-11-05 21:17:46 +01:00
47095d70a9
Using random_int directly
2018-11-05 21:16:18 +01:00
049cd963f3
Using random_int directly
2018-11-05 21:15:30 +01:00
c94936a149
copy/paste error
2018-11-05 21:03:55 +01:00
6e10bdf361
Move random Digits to Crypto class
2018-11-05 21:02:54 +01:00
0472c7b57d
Merge pull request #6070 from zeroadam/TextToXML
...
split xml functions out of text.php
2018-11-05 13:50:09 -05:00
Adam Magness
cace4a8991
Update and rename test class
...
update and rename test class.
2018-11-05 13:08:33 -05:00
Adam Magness
119b4afddf
Create/Update tests
...
create new test class and update old one.
2018-11-05 07:53:12 -05:00
c2bd69e351
Lock TTL fix
2018-11-05 08:51:35 +01:00
e434ff0196
Test enhancements
2018-11-01 13:45:21 +01:00
83ead5ec48
Test enhancements
2018-11-01 13:44:47 +01:00
70f9d3c596
documentation
2018-11-01 12:48:43 +01:00
4f01a198e1
AutoInstall Test fix
...
- New Mock for Renderer
- No need of prepared assert.ini.php anymore
- Mocking Renderer during Autoinstall
2018-11-01 10:30:44 +01:00
764e1a3cb6
Fixing issue L10n::t()
2018-10-31 12:37:52 +01:00
d75cc0cb34
Bugfixing executable (Mocking the executable)
2018-10-31 12:37:47 +01:00
92d3d77e76
Bufixing environment specific assertion problem
2018-10-31 11:03:15 +01:00
70e240691e
Moved Mocking usage
...
Adding more documentation
2018-10-31 10:39:50 +01:00
551efde226
removed unnecessary use
2018-10-31 10:19:33 +01:00
0e22c18a9d
Bugfixing & Enhancement
...
- Added Mocking Engine for App, DBA, Config
- Using Mocking Engine for AutomaticInstallationConsoleTest
- Using Mocking Engine for ConfigConsoleTest
- Removing MultiUserConsole - Workaround
2018-10-31 10:16:15 +01:00
91f595000c
Mocking DBStructure::existsTable()
2018-10-30 12:47:44 +01:00
cf39c9df81
Bugfixings
...
- moved testargs.php to util directory
- Switch Environment check before config at automatic install
- checkPHP() is now finding the PHP binary too
- Bugfixing checkPHP() & required returned wrong status
- removing not used $_POST['phpath'] in web installer
2018-10-30 11:30:19 +01:00
f0382ab919
Refactoring Installation
...
- centralized installation
- renamed Core\Install to Core\Installer
- avoid using $a->data[] for states
- removed unnecessary code
2018-10-29 18:44:39 +01:00
abb50fbf62
Install to Module
...
- Move Install to Module
- Some Bugfixings
2018-10-29 14:10:45 +01:00
Michael Vogel
d61a98a995
Merge pull request #6008 from nupplaphil/fixing_tests_2
...
Fixing tests - part 2
2018-10-23 14:23:59 +02:00
a79daf3946
Fixing tests - part 2
2018-10-23 13:53:48 +02:00
3e6ea9383b
Making redirect message more informative
2018-10-23 12:17:41 +02:00
fad99b8619
Switch from dbstructure.json to dbstructure.php
2018-10-22 16:50:55 -04:00
2ef81108b3
Renamed System::redirect() to $a->redirect()
2018-10-22 22:13:22 +02:00
5ab115598c
Code Standards
2018-10-22 21:11:09 +02:00
d28424ddce
Code standards
2018-10-22 21:10:31 +02:00
4a82708cbf
Fix Testing
2018-10-22 20:59:51 +02:00
cbb9a2e8b7
Fix Testing
2018-10-22 20:23:06 +02:00
c32ac7f194
Install Class to methods
...
- Bugfixing Install checks (worked not as expected)
- Changed static methods from Install to class functions
- Added tests
2018-10-13 18:09:53 +02:00
5f9065e00a
smaller about.body
2018-10-11 22:21:05 +02:00
b099cba4b4
CurlResult Tests & RegEx fix
2018-10-11 22:18:27 +02:00
00bf0c24b6
CurlResult Tests
2018-10-11 21:19:38 +02:00
8cc15fd2a8
Bugfixing DatabaseTest
2018-10-10 00:20:08 +02:00
5a02e39a65
Rename App Methods
...
- renamed a lot of App methods to CamelCase
- replaced direct public variables with get-/set-Methods
2018-10-10 00:16:06 +02:00
3bccaccede
Merge pull request #5848 from nupplaphil/friendica-5847
...
friendica-5847 Console Cache List command doesn't work
2018-10-07 17:47:51 -04:00
3f0f3b6ae6
friendica-5847 Console Cache List command doesn't work
...
- Added $prefix to all CacheDriver
- Moved hostname magic to CacheDriver
- Added test for getAllKeys()
2018-10-07 00:27:54 +02:00
a2fb49a2b4
Removing debugging echo
...
Updating Tests
2018-10-06 19:11:00 +02:00
31148e25cf
Changing Friendica\App\Mode from static methods to public methods
...
- Changing from static methods to public methods
- Adding dev-composer-dependency Mockery for static method mocking (f.e. Config, DBA)
- Adding ModeTest with Mocking
- removing bootstrap from phpunit.xml because of double loading tests\bootstrap.php
2018-10-06 16:27:20 +02:00
924b21623c
Fixing tests for AutomaticInstallation
2018-10-05 19:51:14 +02:00
d5203735eb
The API test should now complete again
2018-10-02 07:38:43 +00:00
bd2b3b1ef5
LockDriverFixings
...
- release Locks in case of failures
- adding some cache tests
2018-09-06 08:11:18 +02:00
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
e5c767d809
a new unittest for prefix
2018-07-09 22:15:11 +02:00
8c2258dd2e
switched back to origin TestCase structure
2018-07-09 21:48:47 +02:00