mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-01-04 00:11:23 +00:00
fix cs
This commit is contained in:
@@ -50,6 +50,27 @@ class FindCallerControllerTest extends TestCase
|
||||
self::assertEqualsCanonicalizing($expected, $actual);
|
||||
}
|
||||
|
||||
public static function provideFindCaller(): iterable
|
||||
{
|
||||
yield [
|
||||
'32486540600',
|
||||
[],
|
||||
['found' => false, 'name' => null],
|
||||
];
|
||||
|
||||
yield [
|
||||
'32486540600',
|
||||
[new Person()],
|
||||
['found' => true, 'name' => 'pppp'],
|
||||
]
|
||||
;
|
||||
yield [
|
||||
'32486540600',
|
||||
[new Person(), new Person()],
|
||||
['found' => true, 'name' => 'multiple'],
|
||||
];
|
||||
}
|
||||
|
||||
public function testFindCallerWithoutCallerArgument(): void
|
||||
{
|
||||
self::expectException(BadRequestHttpException::class);
|
||||
@@ -83,27 +104,6 @@ class FindCallerControllerTest extends TestCase
|
||||
$controller->findCaller($request);
|
||||
}
|
||||
|
||||
public static function provideFindCaller(): iterable
|
||||
{
|
||||
yield [
|
||||
'32486540600',
|
||||
[],
|
||||
['found' => false, 'name' => null],
|
||||
];
|
||||
|
||||
yield [
|
||||
'32486540600',
|
||||
[new Person()],
|
||||
['found' => true, 'name' => 'pppp'],
|
||||
]
|
||||
;
|
||||
yield [
|
||||
'32486540600',
|
||||
[new Person(), new Person()],
|
||||
['found' => true, 'name' => 'multiple'],
|
||||
];
|
||||
}
|
||||
|
||||
private function buildController(array $personsFound): FindCallerController
|
||||
{
|
||||
$phonenumberHelper =
|
||||
|
||||
Reference in New Issue
Block a user