mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-27 05:19:31 +00:00
Fixed tests for new PHPunit 11.5
Some checks failed
Build assets artifact / Build assets artifact (push) Has been cancelled
Docker Image Build / docker (push) Has been cancelled
Docker Image Build (FrankenPHP) / docker (push) Has been cancelled
Static analysis / Static analysis (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.1, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.1, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.1, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, sqlite) (push) Has been cancelled
Some checks failed
Build assets artifact / Build assets artifact (push) Has been cancelled
Docker Image Build / docker (push) Has been cancelled
Docker Image Build (FrankenPHP) / docker (push) Has been cancelled
Static analysis / Static analysis (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.1, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.1, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.1, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, sqlite) (push) Has been cancelled
This commit is contained in:
parent
f3ad3c1ffe
commit
e2735823a0
44 changed files with 91 additions and 94 deletions
|
|
@ -58,14 +58,14 @@ class BarcodeContentGeneratorTest extends KernelTestCase
|
|||
$this->service = self::getContainer()->get(BarcodeContentGenerator::class);
|
||||
}
|
||||
|
||||
public function Barcode1DDataProvider(): \Iterator
|
||||
public static function Barcode1DDataProvider(): \Iterator
|
||||
{
|
||||
yield ['P0000', Part::class];
|
||||
yield ['L0000', PartLot::class];
|
||||
yield ['S0000', StorageLocation::class];
|
||||
}
|
||||
|
||||
public function Barcode2DDataProvider(): \Iterator
|
||||
public static function Barcode2DDataProvider(): \Iterator
|
||||
{
|
||||
yield ['/scan/part/0', Part::class];
|
||||
yield ['/scan/lot/0', PartLot::class];
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ class LabelTextReplacerTest extends WebTestCase
|
|||
$this->target->setComment('P Comment');
|
||||
}
|
||||
|
||||
public function handlePlaceholderDataProvider(): \Iterator
|
||||
public static function handlePlaceholderDataProvider(): \Iterator
|
||||
{
|
||||
yield ['Part 1', '[[NAME]]'];
|
||||
yield ['P Description', '[[DESCRIPTION]]'];
|
||||
|
|
@ -83,7 +83,7 @@ class LabelTextReplacerTest extends WebTestCase
|
|||
yield ['Test [[NAME]]', 'Test [[NAME]]', 'Test [[NAME]]'];
|
||||
}
|
||||
|
||||
public function replaceDataProvider(): \Iterator
|
||||
public static function replaceDataProvider(): \Iterator
|
||||
{
|
||||
yield ['Part 1', '[[NAME]]'];
|
||||
yield ['TestPart 1', 'Test[[NAME]]'];
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ class AbstractElementProviderTest extends WebTestCase
|
|||
};
|
||||
}
|
||||
|
||||
public function dataProvider(): \Iterator
|
||||
public static function dataProvider(): \Iterator
|
||||
{
|
||||
yield ['123', '[[ID]]'];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ class GlobalProvidersTest extends WebTestCase
|
|||
$this->target = new Part();
|
||||
}
|
||||
|
||||
public function dataProvider(): \Iterator
|
||||
public static function dataProvider(): \Iterator
|
||||
{
|
||||
yield ['Part-DB', '[[INSTALL_NAME]]'];
|
||||
yield ['anonymous', '[[USERNAME]]'];
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ class NamedElementProviderTest extends WebTestCase
|
|||
};
|
||||
}
|
||||
|
||||
public function dataProvider(): \Iterator
|
||||
public static function dataProvider(): \Iterator
|
||||
{
|
||||
yield ['This is my Name', '[[NAME]]'];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ class PartLotProviderTest extends WebTestCase
|
|||
$this->target->setOwner($user);
|
||||
}
|
||||
|
||||
public function dataProvider(): \Iterator
|
||||
public static function dataProvider(): \Iterator
|
||||
{
|
||||
yield ['unknown', '[[LOT_ID]]'];
|
||||
yield ['Lot description', '[[LOT_NAME]]'];
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ class PartProviderTest extends WebTestCase
|
|||
$this->target->setComment('<b>Bold</b> *Italic*');
|
||||
}
|
||||
|
||||
public function dataProvider(): \Iterator
|
||||
public static function dataProvider(): \Iterator
|
||||
{
|
||||
yield ['Node 2.1', '[[CATEGORY]]'];
|
||||
yield ['Node 2 → Node 2.1', '[[CATEGORY_FULL]]'];
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ class TimestampableElementProviderTest extends WebTestCase
|
|||
};
|
||||
}
|
||||
|
||||
public function dataProvider(): \Iterator
|
||||
public static function dataProvider(): \Iterator
|
||||
{
|
||||
\Locale::setDefault('en');
|
||||
yield ['1/1/00, 12:00 AM', '[[LAST_MODIFIED]]'];
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ class SandboxedTwigFactoryTest extends WebTestCase
|
|||
$this->service = self::getContainer()->get(SandboxedTwigFactory::class);
|
||||
}
|
||||
|
||||
public function twigDataProvider(): \Iterator
|
||||
public static function twigDataProvider(): \Iterator
|
||||
{
|
||||
yield [' {% for i in range(1, 3) %}
|
||||
{{ part.id }}
|
||||
|
|
@ -95,7 +95,7 @@ class SandboxedTwigFactoryTest extends WebTestCase
|
|||
'];
|
||||
}
|
||||
|
||||
public function twigNotAllowedDataProvider(): \Iterator
|
||||
public static function twigNotAllowedDataProvider(): \Iterator
|
||||
{
|
||||
yield ['{% block test %} {% endblock %}'];
|
||||
yield ['{% deprecated test %}'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue