d4d4f4e950
[TESTS] Cleanup attachment test data
2021-09-14 13:13:27 +01:00
6e6d1a946f
[TESTS] Remove MediaFileTest and move setup code to media data fixture
2021-09-14 13:13:27 +01:00
5fd91bf3a2
[TESTS][Twig] Fix ExtensionTest->testIconsExtension
2021-09-14 13:13:26 +01:00
3f61537140
[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-09-14 13:13:24 +01:00
809bf00aa9
[TemporaryFile][TESTS] Throw on attempt to write to null resource and fix tests
2021-09-14 13:13:24 +01:00
c24c32334d
[TESTS] Add test for JSON response and invalid accept format
2021-09-14 13:13:24 +01:00
061a85d6b3
[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-09-14 13:13:23 +01:00
57f43108bb
[TESTS] Fix Entity test in accordance with the changes to createOrUpdate
2021-09-14 13:13:23 +01:00
b5de80303a
[TEST] Raise test coverage for UserPanel to 100%
2021-09-14 13:13:23 +01:00
8240591bd4
[TESTS] Fixup Security controller tests to match new UI
2021-09-14 13:13:19 +01:00
fe7c2b5115
[TESTS] Raise test coverage for AdminPanel controller to 100%
2021-09-14 13:13:19 +01:00
e0a0df502e
[TESTS] Raise test coverage for Attachment controller to 100%
2021-09-14 13:13:19 +01:00
dfc97d2607
[TESTS] Raise test coverage for Controller/Security to 100%
2021-09-14 13:13:18 +01:00
41e4e2de0e
[TESTS][Router] Add tests for Router and use named paramenters, as we can since PHP8
2021-09-14 13:13:16 +01:00
1d40c5cdb3
[TESTS][DB] Update test to reflec fact that GSActor no longer has a normalized_nickname field
2021-09-14 13:13:15 +01:00
6b4b3e90fb
[TESTS][Nickname] Update tests to reflect new usage. Normalization functionality will be moved to a plugin
2021-09-14 13:13:15 +01:00
adf0897527
[TESTS][TemporaryFile] Update test to reflect new usage
2021-09-14 13:13:15 +01:00
7a2574eafb
[CORE][TemporaryFile] Add option to specify attempts and better handle when reaching the attemp limit without being able to create a file
2021-09-14 13:13:15 +01:00
f5fb4ed3c3
[TESTS] Add tests for GSFile
2021-09-14 13:13:15 +01:00
2ee99e5176
[TESTS] Raise test coverage for Form to 100%
2021-09-14 13:13:14 +01:00
b111870853
[TESTS][EVENTS] Raise test coverage for Event class to 100%
2021-09-14 13:13:14 +01:00
871422e6b6
[TESTS][ENTITY] Raise test coverage for Entity class to 100%
2021-09-14 13:13:14 +01:00
747b464c7d
[TESTS] Add missing tests for Common
2021-09-14 13:13:13 +01:00
9ce30751af
[TESTS] Expand and fix cache tests
2021-09-14 13:13:13 +01:00
c8cf8c3f13
[FILE][TemporaryFile] Fix various issues now that we also have Symfony's file abstractions
2021-09-14 13:13:03 +01:00
74f477489b
[TESTS] Raise test coverage for App\Controller\Network to 100% and fixup related code
2021-09-14 13:13:02 +01:00
6d93b6fb32
[TESTS] Raise App\Core\DB\DB test coverage to 100% and fix issues found
2021-09-14 13:13:01 +01:00
52edaa319b
[TESTS] Raise App\Core\DB\UpdateListener test coverage to 100%
2021-09-14 13:13:01 +01:00
d49541629d
[TESTS] Change relevant tests to use GNUsocialTestCase, so they can access all the needed features
2021-09-14 13:13:01 +01:00
fbe0f36a53
[TESTS] Expand test coverage for App\Util\Forms\ArrayTransformer, App\Util\Notification and App\Twig\Runtime
2021-09-14 13:13:00 +01:00
c84fcc608f
[TESTS] Raise App\Util\TemporaryFile test coverage to 100%
2021-09-14 13:13:00 +01:00
01a659e5b3
[TESTS] Raise test coverage for NicknameTest to 100%
2021-09-14 13:12:59 +01:00
a49ee453ab
[TESTS] Raise App\Util\HTML test coverage to 100%
2021-09-14 13:12:58 +01:00
fbea08ca9b
[TESTS] Raise App\Util\Bitmap test coverage to 100%
2021-09-14 13:12:58 +01:00
abda73b8e3
[TESTS] Raise App\Util\Common test coverage to 100%
2021-09-14 13:12:58 +01:00
15a8f8ab7f
[TESTS] Add tests increasing coverage of App\Util\Formatting to 100%
2021-09-14 13:12:58 +01:00
ae0e410986
[TESTS] Fix Nickname test
2021-09-14 13:12:23 +01:00
77655c1248
[TESTS] Fix wrong namespace in tests
2021-09-14 13:12:23 +01:00
8b5bd40421
[TESTS] Add tests to all relevant methods under App\Util and fix errors that popup
2021-09-14 13:10:23 +01:00
5afd2c9843
Duplicate src/Util/Exception/NicknameTooLongException.php history in src/Util/Exception/NicknameTooShortException.php history.
2021-09-14 13:10:23 +01:00
dc2a453e94
[TESTS] Add tests of Common and fix small oddities that pop up
2021-09-14 13:10:22 +01:00
b387ea9aa0
[TESTS] Fix error when testing cold redis cache
2021-09-14 13:10:22 +01:00
88e4044d02
[TESTS] Add tests for the bitmap utility and fix implementation
2021-09-14 13:10:22 +01:00
c539f17ba5
[TESTS] Add App\Core\Cache test
2021-09-14 13:10:22 +01:00
c8b2a7a2e0
[TESTS] Fix deprecations
2021-09-14 13:10:21 +01:00
1028f05cd8
[TESTS] Fix unkept unit tests
2021-09-14 13:10:21 +01:00
2d70f484f2
[TEST] Fix translation test
2021-09-14 13:10:21 +01:00
Daniel
ffb4b9df23
[Poll] Added modified param for Poll/Poll response, added PollTest
2021-09-14 13:10:12 +01:00
Daniel
95f95d2dd8
[TESTS] Added unit tests
2021-09-14 13:10:08 +01:00
Angelo D. Moura
d53fef09a8
[TWIG] Moves the SVG custom function to an extension and change the test regex
2021-09-14 13:06:58 +01:00