Commit graph

26 commits

Author SHA1 Message Date
Philipp Holzer
4a82708cbf
Fix Testing 2018-10-22 20:59:51 +02:00
Philipp Holzer
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
Philipp Holzer
a2fb49a2b4
Removing debugging echo
Updating Tests
2018-10-06 19:11:00 +02:00
Michael
d5203735eb The API test should now complete again 2018-10-02 07:38:43 +00: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
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
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
c60d85329c Rename language to lang in test data as well 2018-07-04 17:55:06 -04: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
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
defd3d15b6 Possibly fixed test 2018-06-09 20:39:40 +00:00
Pierre Rudloff
3195d6e125 Add API tests 2018-05-10 19:12:00 +02:00