aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* [feature/soft-delete] Add test case for (soft)deleting the only post + fixJoas Schilling2012-10-062-0/+90
| | | | PHPBB3-9567
* [feature/soft-delete] Add some unit tests for delete_post()Joas Schilling2012-10-062-0/+353
| | | | PHPBB3-9567
* [feature/soft-delete] Add unit tests for set_topic_visibility()Joas Schilling2012-10-052-0/+239
| | | | PHPBB3-9567
* [feature/soft-delete] Extend functionality for updating a hole topicJoas Schilling2012-10-051-12/+0
| | | | | | | | | 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
* [feature/soft-delete] Fix sync('topic') to match the new logicJoas Schilling2012-10-052-5/+60
| | | | | | This also fixes set_post_visibility() PHPBB3-9567
* [feature/soft-delete] Merge functionality of m_approve and m_restoreJoas Schilling2012-10-053-62/+4
| | | | | | | | | | | 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
* [feature/soft-delete] Test topic visibility as wellJoas Schilling2012-10-051-6/+6
| | | | PHPBB3-9657
* [feature/soft-delete] Add unit tests for simple cases of set_post_visibilityJoas Schilling2012-10-022-0/+246
| | | | | | These tests require at least one remaining post. PHPBB3-9657
* [feature/soft-delete] Remove unneeded require_once()Joas Schilling2012-10-023-9/+0
| | | | PHPBB3-9657
* [feature/soft-delete] Add unit tests for get_global_visibility_sql()Joas Schilling2012-10-012-4/+153
| | | | PHPBB3-9657
* [feature/soft-delete] Add unit tests for get_forums_visibility_sql()Joas Schilling2012-10-013-5/+282
| | | | PHPBB3-9657
* [feature/soft-delete] Add unit tests for get_visibility_sql()Joas Schilling2012-10-012-0/+196
| | | | PHPBB3-9657
* [feature/soft-delete] Remove old unit testsJoas Schilling2012-10-014-546/+0
| | | | PHPBB3-9657
* [feature/soft-delete] Fix some small bugsJosh Woody2012-08-291-4/+9
| | | | | | | | To wit: using non-existing constant POST_DELETED in posting.php; first test post was initially unapproved; soft delete checkbox appeared at post time Links pointing to the wrong place. PHPBB3-9657
* [feature/soft-delete] Rename phpbb_visibility class to phpbb_content_visibilityJosh Woody2012-08-291-32/+32
| | | | | | Rename the class to more accurately reflect what it does. PHPBB3-9657
* [feature/soft-delete] Add unit tests for the phpbb_visibility classJosh Woody2012-08-295-0/+599
| | | | | | Add unit tests for the phpbb_visibility class. Adjust the phpbb_visibility class to pass those unit tests. The changes are pretty small, actually. PHPBB3-9657
* Merge remote-tracking branch 'nickvergessen/feature/php-events-4' into developDavid King2012-08-202-5/+26
|\
| * [feature/php-events] Add mock for unit tests and create it were neededJoas Schilling2012-08-112-5/+26
| | | | | | | | PHPBB3-9550
* | Merge pull request #932 from EXreaction/ticket/10875Nils Adermann2012-08-143-2/+59
|\ \ | | | | | | Ticket/10875
| * | [ticket/10875] Fix cache testNathan Guse2012-08-061-1/+1
| | | | | | | | | | | | | | | | | | Check for the correct filename based on the way the cache driver creates it PHPBB3-10875
| * | [ticket/10875] Break queries onto separate lines and use double quotesNathan Guse2012-08-061-3/+6
| | | | | | | | | | | | | | | | | | Coding guidelines PHPBB3-10875
| * | [ticket/10875] Close $db connection at end of testNathan Guse2012-08-061-0/+2
| | | | | | | | | | | | | | | | | | Fixes a pgSQL issue PHPBB3-10875
| * | [ticket/10875] Use fixtures for sql cache testNathan Guse2012-08-062-12/+34
| | | | | | | | | | | | PHPBB3-10875
| * | [ticket/10875] Return $query_id from sql_saveNathan Guse2012-08-062-2/+32
| | | | | | | | | | | | | | | | | | | | | | | | Have to return the $query_id from sql_save so that the results can be pulled Updated cache test to do some basic sql cache testing. PHPBB3-10875
* | | Merge branch 'develop-olympus' into developAndreas Fischer2012-07-301-4/+2
|\ \ \ | |/ / |/| | | | | | | | * develop-olympus: [ticket/11034] Re-arranged install order to emulate real install
| * | [ticket/11034] Re-arranged install order to emulate real installFyorl2012-07-301-4/+2
| | | | | | | | | | | | PHPBB3-11034
| * | Merge branch 'prep-release-3.0.11' into develop-olympusNils Adermann2012-07-221-0/+12
| |\ \ | | | | | | | | | | | | | | | | * prep-release-3.0.11: [ticket/10667] Fix tests under MySQL 5.5 strict mode (once again)
| | * | [ticket/10667] Fix tests under MySQL 5.5 strict mode (once again)Igor Wiedler2012-07-221-0/+12
| | | | | | | | | | | | | | | | PHPBB3-10667
* | | | [ticket/10667] Fix tests under MySQL 5.5 strict mode (once again)Igor Wiedler2012-07-211-0/+12
| | | | | | | | | | | | | | | | PHPBB3-10667
* | | | [ticket/11012] Fix php_ext change in mock_extension_managerIgor Wiedler2012-07-211-1/+1
| | | | | | | | | | | | | | | | PHPBB3-11012
* | | | Merge branch 'develop-olympus' into developNils Adermann2012-07-212-0/+305
|\ \ \ \ | |/ / / | | | / | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10950] Fix grammar in comments [ticket/10950] Delete PMs for users that have not yet read the pm [ticket/10950] Fix unit tests to fit the new pm deleting behaviour [ticket/10950] Update undelivered pm counts in batches not 1 by 1 for each user [ticket/10950] Remove deleted entries in tests instead of commenting them out [ticket/10950] Use database count() and group by instead of doing that in php [ticket/10950] Check $delete_ids to be not empty [ticket/10950] Recreated the behaviour of phpbb_delete_user_pms() [ticket/10950] Fix unit tests to reflect desired behaviour [ticket/10950] Add some first and simple unit tests for phpbb_delete_user_pms() [ticket/10950] Correct comment for the second query. [ticket/10950] Add empty line to make unset() call more visible. [ticket/10950] Select the correct columns in SQL queries. [ticket/10950] Use a variable for the private message id. [ticket/10950] Move array initialisation to the front. [ticket/10950] Remove redundant if statement. [ticket/10950] Fix SQL coding style (indentation) in second SQL query. [ticket/10950] Use proper ' in order to fix comment.
| * | Merge branch 'prep-release-3.0.11' into develop-olympusNils Adermann2012-07-212-0/+305
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * prep-release-3.0.11: [ticket/10950] Fix grammar in comments [ticket/10950] Delete PMs for users that have not yet read the pm [ticket/10950] Fix unit tests to fit the new pm deleting behaviour [ticket/10950] Update undelivered pm counts in batches not 1 by 1 for each user [ticket/10950] Remove deleted entries in tests instead of commenting them out [ticket/10950] Use database count() and group by instead of doing that in php [ticket/10950] Check $delete_ids to be not empty [ticket/10950] Recreated the behaviour of phpbb_delete_user_pms() [ticket/10950] Fix unit tests to reflect desired behaviour [ticket/10950] Add some first and simple unit tests for phpbb_delete_user_pms() [ticket/10950] Correct comment for the second query. [ticket/10950] Add empty line to make unset() call more visible. [ticket/10950] Select the correct columns in SQL queries. [ticket/10950] Use a variable for the private message id. [ticket/10950] Move array initialisation to the front. [ticket/10950] Remove redundant if statement. [ticket/10950] Fix SQL coding style (indentation) in second SQL query. [ticket/10950] Use proper ' in order to fix comment.
| | * Merge remote-tracking branch 'github-nickvergessen/ticket/10950' into ↵Nils Adermann2012-07-212-0/+305
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | prep-release-3.0.11 * github-nickvergessen/ticket/10950: [ticket/10950] Fix grammar in comments [ticket/10950] Delete PMs for users that have not yet read the pm [ticket/10950] Fix unit tests to fit the new pm deleting behaviour [ticket/10950] Update undelivered pm counts in batches not 1 by 1 for each user [ticket/10950] Remove deleted entries in tests instead of commenting them out [ticket/10950] Use database count() and group by instead of doing that in php [ticket/10950] Check $delete_ids to be not empty [ticket/10950] Recreated the behaviour of phpbb_delete_user_pms() [ticket/10950] Fix unit tests to reflect desired behaviour [ticket/10950] Add some first and simple unit tests for phpbb_delete_user_pms() [ticket/10950] Correct comment for the second query. [ticket/10950] Add empty line to make unset() call more visible. [ticket/10950] Select the correct columns in SQL queries. [ticket/10950] Use a variable for the private message id. [ticket/10950] Move array initialisation to the front. [ticket/10950] Remove redundant if statement. [ticket/10950] Fix SQL coding style (indentation) in second SQL query. [ticket/10950] Use proper ' in order to fix comment.
| | | * [ticket/10950] Fix unit tests to fit the new pm deleting behaviourJoas Schilling2012-07-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Undelivered PMs should not be delivered to recipients that have not yet received them. PHPBB3-10950
| | | * [ticket/10950] Remove deleted entries in tests instead of commenting them outJoas Schilling2012-07-111-17/+0
| | | | | | | | | | | | | | | | PHPBB3-10950
| | | * [ticket/10950] Fix unit tests to reflect desired behaviourJoas Schilling2012-07-042-4/+105
| | | | | | | | | | | | | | | | | | | | | | | | See http://wiki.phpbb.com/Deleting_Private_Messages for further explanation. PHPBB3-10950
| | | * [ticket/10950] Add some first and simple unit tests for phpbb_delete_user_pms()Joas Schilling2012-06-232-0/+222
| | | | | | | | | | | | | | | | | | | | | | | | Todo: Add cases to in which the msg is also deleted. PHPBB3-10950
* | | | Merge pull request #843 from nickvergessen/feature/new-tz-handlingNils Adermann2012-07-191-0/+57
|\ \ \ \ | | | | | | | | | | Feature/new tz handling
| * | | | [feature/new-tz-handling] Fix unit testJoas Schilling2012-07-181-1/+1
| | | | | | | | | | | | | | | | | | | | PHPBB3-9558
| * | | | Merge branch 'develop' of git://github.com/phpbb/phpbb3 into ↵Joas Schilling2012-07-1864-62/+1179
| |\ \ \ \ | | | | | | | | | | | | | | | | | | feature/new-tz-handling
| * | | | | [feature/new-tz-handling] Add tests for get_timestamp_from_format()Joas Schilling2012-06-181-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | PHPBB3-9558
* | | | | | Merge remote-tracking branch 'Fyorl/ticket/10992' into developAndreas Fischer2012-07-191-17/+24
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fyorl/ticket/10992: [ticket/10992] Changed octetstream to octet-stream [ticket/10992] test_empty_file() now tries to upload the correct file [ticket/10992] Modified upload tests to work with new version
| * | | | | | [ticket/10992] Changed octetstream to octet-streamFyorl2012-07-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | PHPBB3-10992
| * | | | | | [ticket/10992] test_empty_file() now tries to upload the correct fileFyorl2012-07-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | PHPBB3-10992
| * | | | | | [ticket/10992] Modified upload tests to work with new versionFyorl2012-07-161-17/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | PHPBB3-10992
* | | | | | | Merge branch 'develop-olympus' into developAndreas Fischer2012-07-191-13/+6
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | / / / | | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10981] Added check for PHP version before running composer [ticket/10981] Modified travis to use composer with --dev [ticket/10981] Removed setupBeforeClass [ticket/10981] Modified functional framework to account for goutte changes [ticket/10981] Added goutte via composer Conflicts: .travis.yml composer.phar phpBB/composer.json phpBB/composer.lock tests/bootstrap.php
| * | | | | Merge remote-tracking branch 'Fyorl/ticket/10981' into develop-olympusAndreas Fischer2012-07-192-13/+21
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fyorl/ticket/10981: [ticket/10981] Added check for PHP version before running composer [ticket/10981] Modified travis to use composer with --dev [ticket/10981] Removed setupBeforeClass [ticket/10981] Modified functional framework to account for goutte changes [ticket/10981] Added goutte via composer
| | * | | | | [ticket/10981] Removed setupBeforeClassFyorl2012-07-171-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | PHPBB3-10981
| | * | | | | [ticket/10981] Modified functional framework to account for goutte changesFyorl2012-07-161-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | PHPBB3-10981
| | * | | | | [ticket/10981] Added goutte via composerFyorl2012-07-162-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | composer.phar added and autoloaded before tests PHPBB3-10981