mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-01 00:35:15 +02:00
Applied rectors phpunit 9 migrations to tests
This commit is contained in:
parent
684334ba22
commit
fcbb1849ec
22 changed files with 162 additions and 187 deletions
|
@ -85,22 +85,20 @@ class PartLotProviderTest extends WebTestCase
|
|||
$this->target->setOwner($user);
|
||||
}
|
||||
|
||||
public function dataProvider(): array
|
||||
public function dataProvider(): \Iterator
|
||||
{
|
||||
return [
|
||||
['unknown', '[[LOT_ID]]'],
|
||||
['Lot description', '[[LOT_NAME]]'],
|
||||
['Lot comment', '[[LOT_COMMENT]]'],
|
||||
['4/13/99', '[[EXPIRATION_DATE]]'],
|
||||
['?', '[[AMOUNT]]'],
|
||||
['Location', '[[LOCATION]]'],
|
||||
['Parent → Location', '[[LOCATION_FULL]]'],
|
||||
//Test part inheritance
|
||||
['Part', '[[NAME]]'],
|
||||
['Part description', '[[DESCRIPTION]]'],
|
||||
['John Doe', '[[OWNER]]'],
|
||||
['user', '[[OWNER_USERNAME]]'],
|
||||
];
|
||||
yield ['unknown', '[[LOT_ID]]'];
|
||||
yield ['Lot description', '[[LOT_NAME]]'];
|
||||
yield ['Lot comment', '[[LOT_COMMENT]]'];
|
||||
yield ['4/13/99', '[[EXPIRATION_DATE]]'];
|
||||
yield ['?', '[[AMOUNT]]'];
|
||||
yield ['Location', '[[LOCATION]]'];
|
||||
yield ['Parent → Location', '[[LOCATION_FULL]]'];
|
||||
//Test part inheritance
|
||||
yield ['Part', '[[NAME]]'];
|
||||
yield ['Part description', '[[DESCRIPTION]]'];
|
||||
yield ['John Doe', '[[OWNER]]'];
|
||||
yield ['user', '[[OWNER_USERNAME]]'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue