Christian Weiske
1bbc36f8a4
fix test
2011-05-20 17:08:39 +02:00
Christian Weiske
191f08683e
all but one test work now with a different unittest database
2011-05-20 07:02:52 +02:00
Christian Weiske
675aa6291a
automatically append unittestmode parameter to url
2011-05-20 06:58:28 +02:00
Christian Weiske
ef23f01eba
begin supporting a different database for unit tests
2011-05-19 07:38:35 +02:00
Christian Weiske
88d7b9631b
Merge branch 'master' into configurable-privacy2
2011-05-12 19:25:03 +02:00
Christian Weiske
aea9c9ddbb
fix a test that failed when using a base URL without protocol
2011-05-12 19:09:30 +02:00
bretticvs
fc093a5fe5
Moved testDefaultPrivacyEdit() to tests/www/editTest.php.
...
Moved testDefaultPrivacyImportNetscape() to tests/www/importNetscapeTest.php.
Moved testDefaultPrivacyImport() to tests/www/importTest.php.
Moved testDefaultPrivacyBookmarksAddMissingTitleMissingPrivacy() to tests/www/bookmarksTest.php.
Moved testDefaultPrivacyBookmarksAdd() to tests/www/bookmarksTest.php.
Kept testDefaultPrivacyPrivate() in tests/api/PostsAddTest.php.
Kept testDefaultPrivacyPublic() in tests/api/PostsAddTest.php.
2011-05-05 16:24:21 -06:00
Christian Weiske
4a3fdcc4dd
rename test method
2011-05-03 19:10:30 +02:00
Christian Weiske
fb11021ed7
do not add bookmarks with an invalid URL
2011-05-03 19:10:12 +02:00
Christian Weiske
2077464d46
begin bookmark model class with URL validation method
2011-05-03 09:14:32 +02:00
Christian Weiske
8be81abfe6
merge master
2011-05-02 18:07:15 +02:00
Christian Weiske
f629d081dd
make privacy tests clearer
2011-05-02 09:03:35 +02:00
Christian Weiske
6b02db7920
use cookie jar instead of manually creating the cookie
2011-04-26 07:01:48 +02:00
Christian Weiske
3e5cadc764
use cookie jar instead of manually creating the cookie
2011-04-26 07:00:33 +02:00
Christian Weiske
43b6021be7
use xpath instead of manual string-search to verify test results
2011-04-26 06:59:23 +02:00
Christian Weiske
79e3f4e121
make import test easier
2011-04-18 22:39:06 +02:00
Christian Weiske
6f04c888bf
make importnetscape-test easier
2011-04-18 22:37:42 +02:00
Christian Weiske
5d5ca9efdd
clarify documentation; we are returning get requests
2011-04-18 19:20:58 +02:00
Christian Weiske
87eab925e4
make edit test much easier and do not rely on manual cookie setting
2011-04-18 19:16:58 +02:00
Christian Weiske
b937d6ee42
fix tests that did not find the data file
2011-04-18 07:50:20 +02:00
bretticvs
3b582fd875
Moved unit tests to PostsAddTest.php in Api directory.
2011-04-17 17:42:49 -06:00
Christian Weiske
40b4674e47
exclude database layer files from coverage
2011-04-15 19:22:19 +02:00
Christian Weiske
a1989cff06
add test to search for multiple tags, which fails currently
2011-04-15 19:15:57 +02:00
Christian Weiske
0f0a95998e
use correct url
2011-04-15 08:00:26 +02:00
Christian Weiske
b2c48977bb
use xml parser, not html
2011-04-15 07:56:50 +02:00
Christian Weiske
a25838b267
Fix bug #3097187 : Using opensearch with two tags does not work in Firefox
2011-04-15 07:55:06 +02:00
Christian Weiske
5d22905ce7
verify we get the correct search URL
2011-04-14 17:04:57 +02:00
Christian Weiske
8a87a245b8
test opensearch api content type
2011-04-14 16:58:47 +02:00
Christian Weiske
dbccc1781e
remove fixme
2011-04-14 16:55:51 +02:00
Christian Weiske
f5ac88ea87
test that opensearch link is the main page HTML head
2011-04-14 16:53:46 +02:00
Christian Weiske
542824a9ba
include HTTP_Request2 in api base file
2011-04-14 16:53:09 +02:00
Christian Weiske
bdebe6598c
use bootstrap file declared in phpunit.xml and do not include it in every single test file. also get rid of the PHPUnit_MAIN_METHOD declarations since using phpunit directly is preferred
2011-04-12 09:29:59 +02:00
Christian Weiske
90f29d6e67
first test for service factory
2011-04-12 08:47:44 +02:00
Christian Weiske
200cb1d3c5
move privacy tests for api/post_add to the correct location
2011-04-06 09:52:02 +02:00
Christian Weiske
366987a97d
move unittest config deletion to setup since that makes it easier to debug, and does not break config when the test fatal errored
2011-04-06 09:50:42 +02:00
Christian Weiske
cba0776325
cherry-pick:
...
move setUnittestConfig to TestBaseApi since it makes only sense to use it there
Conflicts:
tests/TestBaseApi.php
2011-04-06 08:43:42 +02:00
Christian Weiske
c81566f5d8
cherry-pick:
...
add new feature: allow unit test mode enabling via HTTP GET parameter
2011-04-06 08:42:26 +02:00
Christian Weiske
1a2b37cc34
tell people why we need that variable
2011-04-06 07:58:01 +02:00
Christian Weiske
988e564ec3
always delete all bookmarks in setUp since almost all methods do it anyway
2011-04-06 07:46:55 +02:00
bretticvs
1aa20d38ca
Re-adding test data without carriage returns.
2011-03-31 16:49:21 -07:00
bretticvs
a0ca398372
Trying to remove carriage returns from test data.
2011-03-31 16:42:44 -07:00
bretticvs
42942507c4
Revert "Revert "Updates for configurable-privacy2, hopefully without carriage returns.""
...
This reverts commit f072059f2d
.
2011-03-31 16:18:36 -07:00
bretticvs
f072059f2d
Revert "Updates for configurable-privacy2, hopefully without carriage returns."
...
This reverts commit 675eadd584
.
2011-03-31 16:17:53 -07:00
bretticvs
675eadd584
Updates for configurable-privacy2, hopefully without carriage returns.
2011-03-31 15:59:44 -07:00
U-SYBASE\bdee
8cbfef8115
Revert "Further updates for configurable-privacy2."
...
This reverts commit ef88147d45
.
2011-03-31 13:25:37 -07:00
bretticvs
ef88147d45
Further updates for configurable-privacy2.
2011-03-30 22:31:51 -07:00
bretticvs
eaa62a6c45
Adding directory and files for test data.
2011-03-30 22:04:39 -07:00
Christian Weiske
a5bd778929
introduce assertResponseJson200 for API/ajax tests and use it
2011-03-28 08:34:12 +02:00
Christian Weiske
1dfff5d3d8
add tests for getadmintags beginsWith and limit parameters
2011-03-28 08:01:02 +02:00
Christian Weiske
a756799ef4
move setUnittestConfig to TestBaseApi since it makes only sense to use it there
2011-03-26 17:04:00 +01:00