forked from mirror/Part-DB.Part-DB-server
Made tests compatible with phpunit 8
The new simple-phpunit wrapper is selects the best phpunit version automatically and removes all the void return types if needed.
This commit is contained in:
parent
a62f947b86
commit
6405dee0ac
19 changed files with 19 additions and 37 deletions
|
@ -48,7 +48,7 @@ class AttachmentPathResolverTest extends WebTestCase
|
|||
self::$footprint_path = self::$projectDir.'/public/img/footprints';
|
||||
}
|
||||
|
||||
public static function setUpBeforeClass()
|
||||
public static function setUpBeforeClass() : void
|
||||
{
|
||||
parent::setUpBeforeClass();
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ class AttachmentURLGeneratorTest extends WebTestCase
|
|||
|
||||
protected static $service;
|
||||
|
||||
public static function setUpBeforeClass()
|
||||
public static function setUpBeforeClass() : void
|
||||
{
|
||||
//Get an service instance.
|
||||
self::bootKernel();
|
||||
|
|
|
@ -34,7 +34,7 @@ class BuiltinAttachmentsFinderTest extends WebTestCase
|
|||
'%FOOTPRINTS_3D%/test.jpg', '%FOOTPRINTS_3D%/hallo.txt',
|
||||
];
|
||||
|
||||
public static function setUpBeforeClass()
|
||||
public static function setUpBeforeClass() : void
|
||||
{
|
||||
//Get an service instance.
|
||||
self::bootKernel();
|
||||
|
|
|
@ -28,7 +28,7 @@ class FileTypeFilterToolsTest extends WebTestCase
|
|||
{
|
||||
protected static $service;
|
||||
|
||||
public static function setUpBeforeClass()
|
||||
public static function setUpBeforeClass() : void
|
||||
{
|
||||
self::bootKernel();
|
||||
self::$service = self::$container->get(FileTypeFilterTools::class);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue