mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 11:03:50 +00:00
fix cs
This commit is contained in:
@@ -54,6 +54,25 @@ final class ReportVoterTest extends KernelTestCase
|
||||
$this->prophet = new \Prophecy\Prophet();
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider dataProvider
|
||||
*
|
||||
* @param type $expectedResult
|
||||
* @param type $action
|
||||
* @param type $message
|
||||
*/
|
||||
public function testAccess(
|
||||
$expectedResult,
|
||||
Report $report,
|
||||
$action,
|
||||
$message,
|
||||
?User $user = null,
|
||||
) {
|
||||
$token = $this->prepareToken($user);
|
||||
$result = $this->voter->vote($token, $report, [$action]);
|
||||
$this->assertEquals($expectedResult, $result, $message);
|
||||
}
|
||||
|
||||
public function dataProvider()
|
||||
{
|
||||
$centerA = $this->prepareCenter(1, 'center A');
|
||||
@@ -120,25 +139,6 @@ final class ReportVoterTest extends KernelTestCase
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider dataProvider
|
||||
*
|
||||
* @param type $expectedResult
|
||||
* @param type $action
|
||||
* @param type $message
|
||||
*/
|
||||
public function testAccess(
|
||||
$expectedResult,
|
||||
Report $report,
|
||||
$action,
|
||||
$message,
|
||||
?User $user = null,
|
||||
) {
|
||||
$token = $this->prepareToken($user);
|
||||
$result = $this->voter->vote($token, $report, [$action]);
|
||||
$this->assertEquals($expectedResult, $result, $message);
|
||||
}
|
||||
|
||||
/**
|
||||
* prepare a person.
|
||||
*
|
||||
|
Reference in New Issue
Block a user