mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-01 07:49:33 +00:00
Applied code style to tests/
This commit is contained in:
parent
f861de791f
commit
fe0f69f762
44 changed files with 427 additions and 306 deletions
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* This file is part of Part-DB (https://github.com/Part-DB/Part-DB-symfony).
|
||||
*
|
||||
|
|
@ -60,11 +63,11 @@ class BuiltinAttachmentsFinderTest extends WebTestCase
|
|||
/**
|
||||
* @dataProvider dataProvider
|
||||
*/
|
||||
public function testFind($keyword, $options, $expected)
|
||||
public function testFind($keyword, $options, $expected): void
|
||||
{
|
||||
$value = static::$service->find($keyword, $options, static::$mock_list);
|
||||
//$this->assertEquals($expected, static::$service->find($keyword, $options, static::$mock_list));
|
||||
$this->assertEquals([], array_diff($value, $expected), 'Additional');
|
||||
$this->assertEquals([], array_diff($expected, $value), 'Missing:');
|
||||
$this->assertSame([], array_diff($value, $expected), 'Additional');
|
||||
$this->assertSame([], array_diff($expected, $value), 'Missing:');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue