Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,30 @@ jobs:

- name: Coding Guideline
run: ./vendor/bin/ecs check
tests:
runs-on: ubuntu-latest
needs:
- xml-linting
- check-composer
strategy:
matrix:
include:
- php-version: '8.3'
typo3-version: '^13.4'
steps:
- uses: actions/checkout@v3

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-version }}"
coverage: none
tools: composer:v2
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install dependencies with expected TYPO3 version
run: composer require --no-progress --no-interaction --optimize-autoloader "typo3/cms-core:${{ matrix.typo3-version }}"

- name: PHPUnit Tests
run: ./vendor/bin/phpunit --testdox
4 changes: 2 additions & 2 deletions Tests/Unit/Controller/UserimportControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class UserimportControllerTest extends UnitTestCase
*/
protected $subject;

protected function setUp()
protected function setUp(): void
{
parent::setUp();
$this->subject = $this->getMockBuilder(UserimportController::class)
Expand All @@ -24,7 +24,7 @@ protected function setUp()
->getMock();
}

protected function tearDown()
protected function tearDown(): void
{
parent::tearDown();
}
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"phpoffice/phpspreadsheet": "^4"
},
"require-dev": {
"typo3/testing-framework": "^9.0",
"symplify/easy-coding-standard": "^12.4"
},
"config": {
Expand Down
30 changes: 30 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.3/phpunit.xsd"
backupGlobals="false"
bootstrap="vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTestsBootstrap.php"
colors="true"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
>

<testsuites>
<testsuite name="functional">
<directory>Tests/</directory>
</testsuite>
</testsuites>

<source>
<include>
<directory suffix=".php">Classes</directory>
</include>
</source>

<php>
<env name="typo3DatabaseDriver" value="pdo_sqlite"/>
</php>
</phpunit>
Loading