mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-21 22:56:12 +01:00
Commit graph

1108 commits

Author SHA1 Message Date
Karsten Nowak
a7101db787 [BUGFIX] Fix error with spread operator in php 7.4
In php 7.4 error occured:
`Cannot unpack array with string keys`

Related #1120
2024-08-20 09:15:23 +02:00
Karsten Nowak
73b8069137 [BUGFIX] Fix some php stan errors
Related #1120
2024-08-20 08:56:13 +02:00
Karsten Nowak
3c240fef23 [TASK] Remove unused imports
Related #1120
2024-08-20 08:56:13 +02:00
Karsten Nowak
2b04b06efa [TASK] Rename test functions
Related #1120
2024-08-20 08:56:13 +02:00
Karsten Nowak
7cce622b3d [TASK] Check that existing teas in other pids were not deleted
Related #1120
2024-08-20 08:56:13 +02:00
50ff004199 Fix broken functional test
SQLite does reset the UID autoincrement during deletion.
That way the assertions do not match.
We now use a different set up and remove the uids from assertions.

That way we still ensure that the imported data is removed and new data
is imported. We do not need to care about UID.
2024-08-20 08:56:13 +02:00
Karsten Nowak
7d1176c024 [TASK] Add functional test for createTestDataCommand
Related #1120
2024-08-20 08:56:13 +02:00
Karsten Nowak
febf422b9b [TASK] Remove unnecessary is_int check of pageUid
Related #1120
2024-08-20 08:56:13 +02:00
Karsten Nowak
1430186268 [TASK] Update reference index after changing test data
Related #1120
2024-08-20 08:56:13 +02:00
Karsten Nowak
91e2a2d16f [TASK] use assert to state data restrictions
Related #1120
2024-08-20 08:56:13 +02:00
Karsten Nowak
4f6e145326 [TASK] Rename pageId to pageUid
Related #1120
2024-08-20 08:56:13 +02:00
Karsten Nowak
a0e5b1c69b [TASK] Move comment directly above the class
Related #1120
2024-08-20 08:56:13 +02:00
Karsten Nowak
742a6fc34f Update Classes/Command/CreateTestDataCommand.php
Co-authored-by: Oliver Klee <typo3-coding@oliverklee.de>
2024-08-20 08:56:13 +02:00
Karsten Nowak
38e2380198 Update Classes/Command/CreateTestDataCommand.php
Co-authored-by: Oliver Klee <typo3-coding@oliverklee.de>
2024-08-20 08:56:13 +02:00
Karsten Nowak
33ce1f2e66 [BUGFIX] Fix errors from php cs fixer
Related: #1120
2024-08-20 08:56:13 +02:00
Karsten Nowak
f5fe3a81b0 [DOCS] Add documentation part for command controller
Related: #1120
2024-08-20 08:56:13 +02:00
Karsten Nowak
6b9fa2cb95 [TASK] Remove phpDocumentor reflection type
Related: #1120
2024-08-20 08:56:13 +02:00
Karsten Nowak
90ace1025d [FEATURE] Add command controller to create test data
Related: #11120
2024-08-20 08:56:13 +02:00
5986b09e81
[BUGFIX] Broken rendering in docs (#1428)
Add necessary blank line.
The indentation will be rendered as quote otherwise.
2024-08-20 08:51:16 +02:00
dependabot[bot]
a7b9c5eee8
[TASK] Update phpstan/phpstan requirement from ^1.11.10 to ^1.11.11 (#1427)
Updates the requirements on [phpstan/phpstan](https://github.com/phpstan/phpstan) to permit the latest version.
- [Release notes](https://github.com/phpstan/phpstan/releases)
- [Changelog](https://github.com/phpstan/phpstan/blob/1.12.x/CHANGELOG.md)
- [Commits](https://github.com/phpstan/phpstan/compare/1.11.10...1.11.11)

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-20 05:17:05 +00:00
dependabot[bot]
0ecfc49594
[TASK] Update phpstan/phpstan requirement from ^1.11.9 to ^1.11.10 (#1426)
Updates the requirements on [phpstan/phpstan](https://github.com/phpstan/phpstan) to permit the latest version.
- [Release notes](https://github.com/phpstan/phpstan/releases)
- [Changelog](https://github.com/phpstan/phpstan/blob/1.12.x/CHANGELOG.md)
- [Commits](https://github.com/phpstan/phpstan/compare/1.11.9...1.11.10)

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-09 05:12:42 +00:00
dependabot[bot]
7587a58ff6
[TASK] Update friendsofphp/php-cs-fixer requirement (#1425)
Updates the requirements on [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) to permit the latest version.
- [Release notes](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases)
- [Changelog](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.61.1...v3.62.0)

---
updated-dependencies:
- dependency-name: friendsofphp/php-cs-fixer
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-08 05:26:54 +00:00
dependabot[bot]
4584d1891e
[TASK] Update phpstan/phpstan requirement from ^1.11.8 to ^1.11.9 (#1424)
Updates the requirements on [phpstan/phpstan](https://github.com/phpstan/phpstan) to permit the latest version.
- [Release notes](https://github.com/phpstan/phpstan/releases)
- [Changelog](https://github.com/phpstan/phpstan/blob/1.12.x/CHANGELOG.md)
- [Commits](https://github.com/phpstan/phpstan/compare/1.11.8...1.11.9)

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-02 06:03:42 +00:00
Oliver Klee
a14fd767d2
[TASK] Add missing commands to the runTest.sh documentation (#1423) 2024-08-01 19:59:09 +02:00
508c6b94cc
[TASK] Remove undocumented composerInstall (#1416)
The project doesn't have a `composer.lock`. That's why one should use
`composer update` instead of `composer lock`.
This can be done by using the existing `-s composer` and appending
`update.
Furthermore, the command itself was not documented or used anyway.

Relates: #1412
2024-08-01 19:44:01 +02:00
Oliver Klee
9c608ffc40
[TASK] Polish the runTests.sh help (#1422)
- sort some lists
- use the proper capitalization for PHPStan
2024-08-01 19:38:34 +02:00
Felix Althaus
adc864f257
[FEATURE] Update node to version 22 (#1420)
Fixes: #1403
2024-08-01 13:31:59 +00:00
dependabot[bot]
564e1c1939
[TASK] Update friendsofphp/php-cs-fixer requirement (#1421)
Updates the requirements on [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) to permit the latest version.
- [Release notes](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases)
- [Changelog](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.60.0...v3.61.1)

---
updated-dependencies:
- dependency-name: friendsofphp/php-cs-fixer
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-01 05:37:01 +00:00
bb9773b959
[TASK] Rename composerInstall* scripts (#1417)
`composer install` does not make sense as we do not have a
`composer.lock`. One should use `composer update` instead.
This is reflected by updating the script names.

Relates: #1412
2024-07-31 18:43:31 +02:00
Eike Starkmann
497dde4179
[BUGFIX] Clean up network after invalid command (#1411)
Fixes #1312
2024-07-31 18:32:25 +02:00
Eike Starkmann
ae5c3e31d5
[FEATURE] Show memory consumption of phpstan (#1414)
Fixes #1372
2024-07-31 16:24:07 +00:00
Eike Starkmann
b3d0a4b7b7
[FEATURE] Add support for PHP 8.4 in runTests.sh (#1413)
Fixes #1363
2024-07-31 18:19:30 +02:00
Felix Althaus
99a2b7f176
[FEATURE] Add shellcheck to Github pipeline (#1400)
Fixes #1398
2024-07-31 18:04:23 +02:00
Felix Althaus
0dc3e82829
[TASK] Split COMMAND variable to be type strict (#1415)
Fixes #1418
2024-07-31 14:28:56 +02:00
Eike Starkmann
6c8f0176c2
[FEATURE] Add PHP mess detector (#1391)
Resolves: #128
2024-07-31 12:54:03 +02:00
Felix Althaus
948505011c
[TASK] Tackle shellcheck issues (#1408)
Fixes #1398
2024-07-31 12:22:57 +02:00
2aec0534d0
[BUGFIX] Remove none existing cglFix (#1407)
The script actually does not exist.
Instead `cgl` will fix and adding `-n` will turn into try mode and only
check.
2024-07-30 21:16:21 +02:00
Felix Althaus
b3cf57bfab
[FEATURE] Allow running npm based quality checks via runTests.sh (#1396)
Fixes #972
2024-07-30 21:15:00 +02:00
Oliver Klee
a6710987bf
[TASK] Rename the CSS lint npm command (#1406)
The name of the command should reflect the type of file that gets
linted.

This is a pre-patch to #1396.
2024-07-30 20:46:53 +02:00
Eike Starkmann
880f995047
[FEATURE] Use parallel-lint for command ci:php:lint (#1378)
Fixes: #1139
2024-07-30 20:17:05 +02:00
Felix Althaus
cd6df41eb7
[TASK] Rename npm commands to fit general naming scheme (#1404) 2024-07-30 19:44:41 +02:00
Eike Starkmann
8e592adba7
[TASK] Add more development documentation (#1399)
Resolves:  #1393
2024-07-30 17:41:28 +00:00
Eike Starkmann
c68c72096c
[TASK] Remove no longer needed path to binaries (#1383) 2024-07-30 17:26:39 +00:00
Eike Starkmann
48dfc14a15
[BUGFIX] Remove debug echo (#1401)
Related: #1399
2024-07-30 16:55:58 +00:00
Eike Starkmann
1571ef0cff
[BUGFIX] No longer create not needed temp folder (#1394)
Resolves: #1222
2024-07-30 14:06:23 +02:00
Felix Althaus
0dce81e9ca
[FEATURE] Add composerUnused suite to runTests.sh (#1390) 2024-07-30 13:45:06 +02:00
Oliver Klee
8d80a25d43
[BUGFIX] Remove unavailable PHPUnit configuration option (#1395)
The PHPUnit configuration option `controlGarbageCollector` was
introduced for PHPUnit 10 and 11 only and hence is not available
for version 9 yet (the version we're using). So we cannot use
this configuration option yet.

This reverts commit 7dea2ddc0b.
2024-07-30 13:35:15 +02:00
1a33abac95
[TASK] Clean up the unit tests configuration (#1389)
Remove no longer needed bootstrap option.
Remove no longer needed backupGlobals options.

Resolves: #1347
2024-07-29 17:53:04 +00:00
5a25569a19
[TASK] Use typoscript instead of ts within script names (#1392)
As ts is usually understood as TypeScript instead of TypoScript.
TYPO3 itself also changed its file extension from `.ts` to `.typoscript`.
We reflect that by adopting the script name.

Resolves: #1385
2024-07-29 19:49:37 +02:00
3dca33ebec
[TASK] Allow additional composer options for -s composerInstall (#1380)
This change modifies the `Build/Script/runTests.sh`
command dispatcher to allow passing composer options
to the `composer install` subcommand, for example

  Build/Scripts/runTests.sh -s composerInstall \
    -- --prefer-source

Note that this is already possible using the generic
`-s composer` dispatcher but would resolve some user
confusion.

This aligns our implementation of runTests.sh with TYPO3 core,
see: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84870

Resolves: #1346
2024-07-29 19:44:01 +02:00