Applied rectors phpunit 9 migrations to tests

This commit is contained in:
Jan Böhmer 2023-06-11 15:15:55 +02:00
parent 684334ba22
commit fcbb1849ec
22 changed files with 162 additions and 187 deletions

View file

@ -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]]'];
}
/**