Commit Graph

187 Commits

Author SHA1 Message Date
c12eacc758
[TESTS][Twig] Fix ExtensionTest->testIconsExtension 2021-08-14 17:00:52 +01:00
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
9c99c11790
[TemporaryFile][TESTS] Throw on attempt to write to null resource and fix tests 2021-08-14 16:13:01 +01:00
ecbfba1b1a
[TESTS] Add test for JSON response and invalid accept format 2021-08-14 16:13:00 +01:00
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
cb0093bd4a
[TESTS] Fix Entity test in accordance with the changes to createOrUpdate 2021-08-14 16:12:58 +01:00
c804892672
[TEST] Raise test coverage for UserPanel to 100% 2021-08-14 16:12:57 +01:00
f760de43b0
[TESTS] Fixup Security controller tests to match new UI 2021-08-03 19:37:56 +00:00
960675b459
[TESTS] Raise test coverage for AdminPanel controller to 100% 2021-08-03 19:37:56 +00:00
f9c1d14c7a
[TESTS] Raise test coverage for Attachment controller to 100% 2021-08-03 19:37:56 +00:00
b2456d8cd2
[TESTS] Raise test coverage for Controller/Security to 100% 2021-08-03 19:23:02 +00:00
6479b698f8
[TESTS][Router] Add tests for Router and use named paramenters, as we can since PHP8 2021-08-03 19:22:16 +00:00
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
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
ed850a7763
[TESTS][TemporaryFile] Update test to reflect new usage 2021-08-03 19:15:30 +00:00
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
1f9acaf4ef
[TESTS] Add tests for GSFile 2021-08-03 19:13:30 +00:00
6956e6907c
[TESTS] Raise test coverage for Form to 100% 2021-08-03 19:13:29 +00:00
b2d72673c7
[TESTS][EVENTS] Raise test coverage for Event class to 100% 2021-08-03 19:13:28 +00:00
b51d43e6e2
[TESTS][ENTITY] Raise test coverage for Entity class to 100% 2021-08-03 19:13:28 +00:00
aa66263b92
[TESTS] Add missing tests for Common 2021-08-03 19:13:28 +00:00
ae27d95509
[TESTS] Expand and fix cache tests 2021-08-03 19:13:27 +00:00
4d2131808a [FILE][TemporaryFile] Fix various issues now that we also have Symfony's file abstractions 2021-07-20 23:46:18 +01:00
eecef99372 [TESTS] Raise test coverage for App\Controller\Network to 100% and fixup related code 2021-05-23 19:56:45 +00:00
f8107c86c5 [TESTS] Raise App\Core\DB\DB test coverage to 100% and fix issues found 2021-05-11 21:04:15 +00:00
ce98e80836 [TESTS] Raise App\Core\DB\UpdateListener test coverage to 100% 2021-05-06 21:57:06 +00:00
75adf2e59f [TESTS] Change relevant tests to use GNUsocialTestCase, so they can access all the needed features 2021-05-06 21:56:28 +00:00
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
5cc82785c6 [TESTS] Raise App\Util\TemporaryFile test coverage to 100% 2021-05-05 12:46:29 +00:00
059ed1fa76 [TESTS] Raise test coverage for NicknameTest to 100% 2021-05-05 12:46:17 +00:00
f5fcfe628e [TESTS] Raise App\Util\HTML test coverage to 100% 2021-05-02 21:02:43 +00:00
fde7b87c65 [TESTS] Raise App\Util\Bitmap test coverage to 100% 2021-05-02 20:47:15 +00:00
f841e5e0dd [TESTS] Raise App\Util\Common test coverage to 100% 2021-05-02 20:42:25 +00:00
16055c7055 [TESTS] Add tests increasing coverage of App\Util\Formatting to 100% 2021-05-02 15:28:56 +00:00
cc47cda3d1 [TESTS] Fix Nickname test 2021-04-23 15:38:26 +00:00
1bad2fa050 [TESTS] Fix wrong namespace in tests 2021-04-22 18:26:00 +00:00
051720a686 [TESTS] Add tests to all relevant methods under App\Util and fix errors that popup 2021-04-14 15:37:24 +00:00
aa58c3520c Duplicate src/Util/Exception/NicknameTooLongException.php history in src/Util/Exception/NicknameTooShortException.php history. 2021-04-14 15:37:24 +00:00
cafd9a39a0 [TESTS] Add tests of Common and fix small oddities that pop up 2021-04-14 15:37:24 +00:00
120011a2d0 [TESTS] Fix error when testing cold redis cache 2021-04-14 15:37:24 +00:00
c8b2ce6694 [TESTS] Add tests for the bitmap utility and fix implementation 2021-04-14 15:37:24 +00:00
f11f9040b1 [TESTS] Add App\Core\Cache test 2021-04-14 15:37:24 +00:00
99c4e8ded5 [TESTS] Fix deprecations 2021-04-14 15:37:23 +00:00
ffaf5da984 [TESTS] Fix unkept unit tests 2021-04-14 15:37:23 +00:00
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