Joas Schilling
bbada27ee9
[ticket/12115] Also port user interests to profile fields
...
PHPBB3-12115
2014-02-06 11:32:11 +01:00
Nils Adermann
b95fdacdd3
[ticket/11700] Move all recent code to namespaces
...
PHPBB3-11700
2013-09-16 00:25:27 +02:00
Joas Schilling
167ca1f33f
[ticket/9657] Define user before injecting
...
PHPBB3-9657
2013-07-13 11:25:38 -04:00
Joas Schilling
753dc62267
[ticket/9657] Fix unit tests
...
PHPBB3-9657
2013-07-11 15:02:07 +02:00
Joas Schilling
1a17a3854f
[ticket/9657] Fix unit tests missing global container.
...
PHPBB3-9657
2013-03-06 16:13:34 +01:00
Joas Schilling
51966bd497
[feature/soft-delete]Fix the rest of unit tests failures
...
PHPBB3-9567
2012-11-10 16:41:43 +01:00
Joas Schilling
f77a6eaab5
[feature/soft-delete] Fix the rest of *_approved and the delete_post unit test
...
PHPBB3-9567
2012-11-10 11:24:52 +01:00
Joas Schilling
3d56261621
[feature/soft-delete] Incorrect integer value: '' for column 'post_delete_time'
...
PHPBB3-9567
2012-10-24 18:03:57 +02:00
Joas Schilling
b2b5dbed26
[feature/soft-delete] Field 'forum_parents' doesn't have a default value
...
PHPBB3-9567
2012-10-24 00:00:15 +02:00
Joas Schilling
3236229188
[feature/soft-delete] Update unit tests to new table structure
...
PHPBB3-9567
2012-10-23 23:35:50 +02:00
Joas Schilling
fbf85b76c1
[feature/soft-delete] Correctly synchronize the topic_visibility in sync()
...
This also makes sync('topic_visibility') obsolete, but we keep it for now.
Also fix a unit test, because ITEM_DELETED overpowers ITEM_UNAPPROVED
PHPBB3-9567
2012-10-09 15:38:50 +02:00
Joas Schilling
25804eb8e8
[feature/soft-delete] Add test case for (soft)deleting the only post + fix
...
PHPBB3-9567
2012-10-06 19:56:52 +02:00
Joas Schilling
7c09b5b89c
[feature/soft-delete] Add some unit tests for delete_post()
...
PHPBB3-9567
2012-10-06 16:31:05 +02:00
Joas Schilling
b9d363f6cc
[feature/soft-delete] Add unit tests for set_topic_visibility()
...
PHPBB3-9567
2012-10-05 14:26:09 +02:00
Joas Schilling
bfa6a50a4f
[feature/soft-delete] Extend functionality for updating a hole topic
...
Limit the posts to a certain visibility and deletion time
This allows us to only restore posts, that were approved
when the topic got soft deleted. So previous soft deleted
and unapproved posts are still soft deleted/unapproved
PHPBB3-9567
2012-10-05 13:12:36 +02:00
Joas Schilling
63d11c976b
[feature/soft-delete] Fix sync('topic') to match the new logic
...
This also fixes set_post_visibility()
PHPBB3-9567
2012-10-05 12:39:05 +02:00
Joas Schilling
959525cebe
[feature/soft-delete] Merge functionality of m_approve and m_restore
...
The problems with having two different permissions are just too big and cause
huge queries, if they are granted differently. Also it's quite hard to decide
what should happen when a moderator has only one permission and the topic has
only posts of the two hidden types. To avoid all this, we merge them so it's a
simple switch: either the user is a moderator, then he can see all posts,
or he is not, then he can only see approved ones.
PHPBB3-9567
2012-10-05 12:05:22 +02:00
Joas Schilling
b8642d7c8a
[feature/soft-delete] Test topic visibility as well
...
PHPBB3-9657
2012-10-05 11:04:56 +02:00
Joas Schilling
1f8f07b998
[feature/soft-delete] Add unit tests for simple cases of set_post_visibility
...
These tests require at least one remaining post.
PHPBB3-9657
2012-10-02 15:32:12 +02:00
Joas Schilling
c36c69c1d4
[feature/soft-delete] Remove unneeded require_once()
...
PHPBB3-9657
2012-10-02 12:54:47 +02:00
Joas Schilling
b629b2cd95
[feature/soft-delete] Add unit tests for get_global_visibility_sql()
...
PHPBB3-9657
2012-10-01 22:44:39 +02:00
Joas Schilling
4a65940e62
[feature/soft-delete] Add unit tests for get_forums_visibility_sql()
...
PHPBB3-9657
2012-10-01 22:14:04 +02:00
Joas Schilling
280619eea9
[feature/soft-delete] Add unit tests for get_visibility_sql()
...
PHPBB3-9657
2012-10-01 17:13:15 +02:00