Diogo Peralta Cordeiro
32ad5dbd74
[ENTITY] Split Attachment in various new entities
...
Remove Attachment Scope
Fixed some minor bugs
Scope will be implemented later in v3. It doesn't make sense to have
the scope handling being per attachment. Different actors can post
the same attachment with different scopes. The attachment controller
will assume the highest level of scope applied to the attachment and
the rest will be handled at the note level.
Motivation:
* Remove title from attachment, as it's part of the relation between attachment and note.
* Remove actor from attachment, many actors may publish the same attachment.
* Remove is_local from attachment, as it's part of the relation between attachment and note.
* Remove remote_url from attachment, different urls can return the same attachment.
Addition:
* Attachment now has a lives attribute, it's a reference counter with a nicer name
* GSActorToAttachment
* GSActorToRemoteURL
* RemoteURL
* RemoteURLToNote
* RemoteURLToAttachment
* AttachmentToNote now has a title attribute
2021-08-14 17:00:46 +01:00
Hugo Sales
9c99c11790
[TemporaryFile][TESTS] Throw on attempt to write to null resource and fix tests
2021-08-14 16:13:01 +01:00
Hugo Sales
ecbfba1b1a
[TESTS] Add test for JSON response and invalid accept format
2021-08-14 16:13:00 +01:00
Hugo Sales
a4cb90ba12
[EVENTS] Change FormatNoteList do separate in and out arguments
...
This is necessary due to some weird problem which I wasn't able to figure out (but which doesn't matter)
that somehow causes the event to be called twice during testing, and thus the function was exploding
2021-08-14 16:12:58 +01:00
Hugo Sales
cb0093bd4a
[TESTS] Fix Entity test in accordance with the changes to createOrUpdate
2021-08-14 16:12:58 +01:00
Hugo Sales
c804892672
[TEST] Raise test coverage for UserPanel to 100%
2021-08-14 16:12:57 +01:00
Hugo Sales
f760de43b0
[TESTS] Fixup Security controller tests to match new UI
2021-08-03 19:37:56 +00:00
Hugo Sales
960675b459
[TESTS] Raise test coverage for AdminPanel controller to 100%
2021-08-03 19:37:56 +00:00
Hugo Sales
f9c1d14c7a
[TESTS] Raise test coverage for Attachment controller to 100%
2021-08-03 19:37:56 +00:00
Hugo Sales
b2456d8cd2
[TESTS] Raise test coverage for Controller/Security to 100%
2021-08-03 19:23:02 +00:00
Hugo Sales
6479b698f8
[TESTS][Router] Add tests for Router and use named paramenters, as we can since PHP8
2021-08-03 19:22:16 +00:00
Hugo Sales
e0ebef594f
[TESTS][DB] Update test to reflec fact that GSActor no longer has a normalized_nickname field
2021-08-03 19:15:30 +00:00
Hugo Sales
63d26d1295
[TESTS][Nickname] Update tests to reflect new usage. Normalization functionality will be moved to a plugin
2021-08-03 19:15:30 +00:00
Hugo Sales
ed850a7763
[TESTS][TemporaryFile] Update test to reflect new usage
2021-08-03 19:15:30 +00:00
Hugo Sales
88ab76c480
[CORE][TemporaryFile] Add option to specify attempts and better handle when reaching the attemp limit without being able to create a file
2021-08-03 19:14:56 +00:00
Hugo Sales
1f9acaf4ef
[TESTS] Add tests for GSFile
2021-08-03 19:13:30 +00:00
Hugo Sales
6956e6907c
[TESTS] Raise test coverage for Form to 100%
2021-08-03 19:13:29 +00:00
Hugo Sales
b2d72673c7
[TESTS][EVENTS] Raise test coverage for Event class to 100%
2021-08-03 19:13:28 +00:00
Hugo Sales
b51d43e6e2
[TESTS][ENTITY] Raise test coverage for Entity class to 100%
2021-08-03 19:13:28 +00:00
Hugo Sales
aa66263b92
[TESTS] Add missing tests for Common
2021-08-03 19:13:28 +00:00
Hugo Sales
ae27d95509
[TESTS] Expand and fix cache tests
2021-08-03 19:13:27 +00:00
Diogo Peralta Cordeiro
4d2131808a
[FILE][TemporaryFile] Fix various issues now that we also have Symfony's file abstractions
2021-07-20 23:46:18 +01:00
Hugo Sales
eecef99372
[TESTS] Raise test coverage for App\Controller\Network to 100% and fixup related code
2021-05-23 19:56:45 +00:00
Hugo Sales
f8107c86c5
[TESTS] Raise App\Core\DB\DB test coverage to 100% and fix issues found
2021-05-11 21:04:15 +00:00
Hugo Sales
ce98e80836
[TESTS] Raise App\Core\DB\UpdateListener test coverage to 100%
2021-05-06 21:57:06 +00:00
Hugo Sales
75adf2e59f
[TESTS] Change relevant tests to use GNUsocialTestCase, so they can access all the needed features
2021-05-06 21:56:28 +00:00
Hugo Sales
b79c0595d5
[TESTS] Expand test coverage for App\Util\Forms\ArrayTransformer, App\Util\Notification and App\Twig\Runtime
2021-05-05 13:37:10 +00:00
Hugo Sales
5cc82785c6
[TESTS] Raise App\Util\TemporaryFile test coverage to 100%
2021-05-05 12:46:29 +00:00
Hugo Sales
059ed1fa76
[TESTS] Raise test coverage for NicknameTest to 100%
2021-05-05 12:46:17 +00:00
Hugo Sales
f5fcfe628e
[TESTS] Raise App\Util\HTML test coverage to 100%
2021-05-02 21:02:43 +00:00
Hugo Sales
fde7b87c65
[TESTS] Raise App\Util\Bitmap test coverage to 100%
2021-05-02 20:47:15 +00:00
Hugo Sales
f841e5e0dd
[TESTS] Raise App\Util\Common test coverage to 100%
2021-05-02 20:42:25 +00:00
Hugo Sales
16055c7055
[TESTS] Add tests increasing coverage of App\Util\Formatting to 100%
2021-05-02 15:28:56 +00:00
Hugo Sales
cc47cda3d1
[TESTS] Fix Nickname test
2021-04-23 15:38:26 +00:00
Hugo Sales
1bad2fa050
[TESTS] Fix wrong namespace in tests
2021-04-22 18:26:00 +00:00
Hugo Sales
051720a686
[TESTS] Add tests to all relevant methods under App\Util and fix errors that popup
2021-04-14 15:37:24 +00:00
Hugo Sales
aa58c3520c
Duplicate src/Util/Exception/NicknameTooLongException.php history in src/Util/Exception/NicknameTooShortException.php history.
2021-04-14 15:37:24 +00:00
Hugo Sales
cafd9a39a0
[TESTS] Add tests of Common and fix small oddities that pop up
2021-04-14 15:37:24 +00:00
Hugo Sales
120011a2d0
[TESTS] Fix error when testing cold redis cache
2021-04-14 15:37:24 +00:00
Hugo Sales
c8b2ce6694
[TESTS] Add tests for the bitmap utility and fix implementation
2021-04-14 15:37:24 +00:00
Hugo Sales
f11f9040b1
[TESTS] Add App\Core\Cache test
2021-04-14 15:37:24 +00:00
Hugo Sales
99c4e8ded5
[TESTS] Fix deprecations
2021-04-14 15:37:23 +00:00
Hugo Sales
ffaf5da984
[TESTS] Fix unkept unit tests
2021-04-14 15:37:23 +00:00
Hugo Sales
49fa11ba07
[TEST] Fix translation test
2021-04-14 15:37:23 +00:00
Daniel
7a925cd9a6
[Poll] Added modified param for Poll/Poll response, added PollTest
2021-04-14 15:37:23 +00:00
Daniel
0868880d45
[TESTS] Added unit tests
2021-04-14 15:37:23 +00:00
Angelo D. Moura
5ec7e2e092
[TWIG] Moves the SVG custom function to an extension and change the test regex
2021-04-14 15:37:23 +00:00
Angelo D. Moura
b60185a97c
[TWIG][TESTS] Update IconsExtension test
2021-04-14 15:37:23 +00:00
Angelo D. Moura
cacd9a574d
[TWIG] Add SVG icon embed function
2021-04-14 15:37:23 +00:00
Diogo Machado
5a7b895476
[DB][TESTS] Implement Doctrine event listener to update timestamps on modification, and related tests
2021-04-14 15:37:23 +00:00