Michael Vogel
f10062dfdb
Merge pull request #8617 from MrPetovan/task/8220-twitter-followers-list
...
(Re)Implement Twitter contact API endpoints
2020-06-14 16:06:22 +02:00
Hypolite Petovan
95138ae7d1
[Tests] Extract fixture logic from ApiTest
...
- Reorder frio scheme tests to avoid PConfig persistence side-effect
2020-06-09 08:38:31 -04:00
Hypolite Petovan
7a5afc10bb
Implement Twitter contact endpoints
...
- Implement /followers/ids
- Implement /followers/list
- Reimplement /friends/ids
- Reimplement /friends/list
- Update API reference
- Remove obsolete tests
2020-06-09 08:36:46 -04:00
Hypolite Petovan
7d800c81ec
Fix faulty test expectation in ApiTest->testApiFriendicaNotificationWithXmlResult
2020-06-08 20:43:46 -04:00
Michael
1a9df263ed
Reactivating tests, fixing stuff
2020-05-15 20:52:01 +00:00
Michael
45f76db5d6
Deactivating test
2020-05-15 20:47:09 +00:00
Michael
d70b77288d
Call the initial value check in the test
2020-05-15 18:08:06 +00:00
Michael
d71c3e0812
Activate test mode for database
2020-05-15 15:05:17 +00:00
Michael
349e1d2015
Tests could work again
2020-05-05 17:32:11 +00:00
Michael
f67c8a7315
Fix test
2020-05-05 16:42:29 +00:00
Philipp
0406fe7ade
Merge pull request #8163 from MrPetovan/task/7817-custom-fields-part-3
...
New custom profile fields feature part 3: Updating the API
2020-01-31 22:39:11 +01:00
Philipp Holzer
082a1982d3
fix ApiTest
2020-01-31 21:40:45 +01:00
Hypolite Petovan
940e4c83cb
Remove obsolete tests
2020-01-29 23:31:38 -05:00
Hypolite Petovan
dd24b3bac0
Move api/profile/show to src/Module
...
- Update API documentation
- Update BaseApi::format to include headers by format
2020-01-29 23:31:37 -05:00
Philipp Holzer
5ccf41a56f
Add API test case for notification
2020-01-28 22:00:21 +01:00
Philipp Holzer
d5a473abda
Shorten "PConfiguration" to "PConfig" again, since the Wrapper is gone
2020-01-19 22:23:44 +01:00
Philipp Holzer
cb80108957
Shorten "Configuration" to "Config" again, since the Wrapper is gone
2020-01-19 21:29:36 +01:00
Philipp Holzer
244f440d97
Remove unused killme()
2020-01-04 23:43:13 +01:00
Philipp Holzer
f0eea6f875
Remove get_app() in favor of DI::app()
2020-01-04 23:42:01 +01:00
Philipp Holzer
3f34229752
Move redundant System::baseUrl() to DI::baseUrl() calls
2019-12-30 23:00:08 +01:00
Philipp Holzer
c1dbb25656
Creating interfaces for Config/PConfig & fix tests
2019-12-29 20:18:19 +01:00
Philipp Holzer
4835f1185f
Remove deprecated App::module - replace with DI::module()->getName()
2019-12-29 20:17:52 +01:00
Philipp Holzer
388b963714
Replace BaseObject class with DI::* calls
2019-12-29 20:17:38 +01:00
Philipp Holzer
1de3f186d7
Introduce new DI container
...
- Adding Friendica\DI class for getting dynamic classes
- Replacing BaseObject::getApp() with this class
2019-12-29 20:16:55 +01:00
Tobias Diekershoff
00756737b5
Merge branch 'master' 2019.12 into develop
2019-12-23 20:03:47 +01:00
Michael
30dfbb95d9
Remove legacy function
2019-12-20 06:40:41 +00:00
Hypolite Petovan
c88e76e427
Update tests related to api_ff_ids
...
- Use new parameter
- Use new empty return
2019-12-13 15:22:24 -05:00
Philipp Holzer
02c40ad1cb
Overwrite constructor of Memory session handling so no session ini-setting in backend/testing environments are possible
2019-12-10 23:35:16 +01:00
Philipp Holzer
af1299c697
Add memory session for API tests
2019-12-10 22:56:56 +01:00
Philipp Holzer
b9f8762eb3
Use Native Session functions (global "$_SESSION" variable) for Memory class because of the direct usage of the $_SESSION class all around the codebase
2019-12-10 22:29:49 +01:00
Michael
164e6b350d
API: Improve attachment removal functionality for the status text
2019-12-02 21:19:47 +00:00
Philipp Holzer
f9f2c9e4b2
Remove unneeded TextTest class
2019-10-23 02:50:09 +02:00
Philipp Holzer
f65f7f11c3
Move expand_acl to ACLFormatter::expand()
...
- including tests
2019-10-23 00:40:14 +02:00
Philipp Holzer
7a9c5d10ee
Remove unused function attribute_contains
2019-10-23 00:22:39 +02:00
Philipp Holzer
9682cc440c
Using method-chaining for DICE
2019-08-05 09:03:12 +02:00
Philipp Holzer
a66580444f
Fixing sort of BaseURL usage for App & Cache usage
2019-08-04 20:01:15 +02:00
Philipp Holzer
fba0574ec0
Switched to Classes for ApiTest
2019-08-04 18:50:24 +02:00
Hypolite Petovan
8485874a87
Fix expand_acl tests
...
- Space containing values aren't valid anymore
- Return values are strings
2019-07-29 20:31:48 -04:00
Philipp Holzer
df9ebf5e8e
Replace api.yml to api.fixture.php
...
- Remove yaml dependency
- Add PHP array based fixture possibility
2019-07-28 20:46:29 +02:00
Philipp Holzer
b08ac3c0a7
Remove Phpunit/Dbunit
...
- Introduce own Yaml-to-SQL class
- Introduce new way of MySQL-DB-tests (per rollback)
- Remove dependency phpunit/dbunit
- Introduce new dev-dependency for YAML-ready (Symfony YAML reader)
2019-07-28 17:40:42 +02:00
Philipp Holzer
37d03bbeae
Introduce test optimization
...
- Add static connection for whole tests
- Introduce ExtendedPDO class to enable nested transactions
- Add rollback logic for tests to ensure reliability and increase speed
2019-07-27 23:54:13 +02:00
Philipp Holzer
07aaf292ec
Fix tests
2019-07-27 23:54:13 +02:00
Philipp Holzer
55999730e0
Introduce DICE
...
- Adding dice library
- Adding dependency config
- Removing Factories
- Refactoring App\Mode constructor
- Refactoring App\Router constructor
- Refactoring BasePath for DI usage
- Refactoring ConfigFileLoader constructor
- Refactoring Profiler constructor
- Adjust entrypoints (index, console, worker, ..)
- Adding functional test for DI
- Fix tests because of refactorings
2019-07-21 01:22:10 +02:00
Hypolite Petovan
0b97b32a59
Merge pull request #7379 from nupplaphil/task/refactor_l10n_for_test
...
Refactor L10n for testing
2019-07-16 16:03:42 -04:00
Philipp Holzer
92fb0a82ca
Dynamic config loading
...
- Move settings, defaults and dbstructure to directory 'static'
- Dynamic loading of config files (after the static loading)
- Filter out '-sample.config.php' and '-sample.ini.php' files
- Remove unnecessary ConfigFileManager
- Move ConfigFileLoader to Utils
- Add tests for multi-loading for INI, config and sample-filtering
2019-07-16 20:16:43 +02:00
Philipp Holzer
79e69ee528
Fix language (again ;-) )
2019-07-16 16:50:49 +02:00
Philipp Holzer
eb024a3718
Refactor L10n for testing
...
- Moving L10n to L10n\L10n
- Adding constructor information
- Adding to factory
- simplify/speedup tests
2019-07-16 16:44:47 +02:00
Philipp Holzer
9d98a4ce3a
Refactor PConfiguration
2019-07-15 20:13:53 +02:00
Philipp Holzer
d384663b39
bugfix: add lost changes due merge
2019-07-14 22:19:16 +02:00
Philipp Holzer
c293eadb78
Improve & fixing Tests
2019-07-14 22:12:11 +02:00