mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-23 12:24:45 +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
|
@ -38,15 +38,13 @@ class AttachmentURLGeneratorTest extends WebTestCase
|
|||
self::$service = self::getContainer()->get(AttachmentURLGenerator::class);
|
||||
}
|
||||
|
||||
public function dataProvider(): array
|
||||
public function dataProvider(): \Iterator
|
||||
{
|
||||
return [
|
||||
['/public/test.jpg', 'test.jpg'],
|
||||
['/public/folder/test.jpg', 'folder/test.jpg'],
|
||||
['/not/public/test.jpg', null],
|
||||
['/public/', ''],
|
||||
['not/absolute/test.jpg', null],
|
||||
];
|
||||
yield ['/public/test.jpg', 'test.jpg'];
|
||||
yield ['/public/folder/test.jpg', 'folder/test.jpg'];
|
||||
yield ['/not/public/test.jpg', null];
|
||||
yield ['/public/', ''];
|
||||
yield ['not/absolute/test.jpg', null];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue