Release 2.12 (#4609)
This commit is contained in:
@@ -32,7 +32,7 @@ abstract class AbstractUserPeriodControllerTest extends ControllerBaseTest
|
||||
|
||||
abstract protected function getBoxId(): string;
|
||||
|
||||
public function testIsSecure()
|
||||
public function testIsSecure(): void
|
||||
{
|
||||
$this->assertUrlIsSecured($this->getReportUrl());
|
||||
}
|
||||
@@ -49,7 +49,7 @@ abstract class AbstractUserPeriodControllerTest extends ControllerBaseTest
|
||||
/**
|
||||
* @dataProvider getTestData
|
||||
*/
|
||||
public function testUserPeriodReport(int $user, string $dataType, string $title)
|
||||
public function testUserPeriodReport(int $user, string $dataType, string $title): void
|
||||
{
|
||||
$client = $this->getClientForAuthenticatedUser(User::ROLE_SUPER_ADMIN);
|
||||
$this->importReportingFixture(User::ROLE_SUPER_ADMIN);
|
||||
@@ -61,7 +61,7 @@ abstract class AbstractUserPeriodControllerTest extends ControllerBaseTest
|
||||
self::assertEquals($title, $cell->text());
|
||||
}
|
||||
|
||||
public function testUserPeriodReportAsTeamlead()
|
||||
public function testUserPeriodReportAsTeamlead(): void
|
||||
{
|
||||
$client = $this->getClientForAuthenticatedUser(User::ROLE_USER);
|
||||
$this->importReportingFixture(User::ROLE_USER);
|
||||
|
||||
@@ -35,7 +35,7 @@ abstract class AbstractUsersPeriodControllerTest extends ControllerBaseTest
|
||||
|
||||
abstract protected function getBoxId(): string;
|
||||
|
||||
public function testIsSecure()
|
||||
public function testIsSecure(): void
|
||||
{
|
||||
$this->assertUrlIsSecured($this->getReportUrl());
|
||||
}
|
||||
@@ -52,7 +52,7 @@ abstract class AbstractUsersPeriodControllerTest extends ControllerBaseTest
|
||||
/**
|
||||
* @dataProvider getTestData
|
||||
*/
|
||||
public function testUsersPeriodReport(string $dataType, string $title)
|
||||
public function testUsersPeriodReport(string $dataType, string $title): void
|
||||
{
|
||||
$client = $this->getClientForAuthenticatedUser(User::ROLE_SUPER_ADMIN);
|
||||
$this->importReportingFixture(User::ROLE_SUPER_ADMIN);
|
||||
@@ -65,7 +65,7 @@ abstract class AbstractUsersPeriodControllerTest extends ControllerBaseTest
|
||||
/**
|
||||
* @dataProvider getTestData
|
||||
*/
|
||||
public function testUsersPeriodReportAsTeamlead(string $dataType, string $title)
|
||||
public function testUsersPeriodReportAsTeamlead(string $dataType, string $title): void
|
||||
{
|
||||
$client = $this->getClientForAuthenticatedUser(User::ROLE_TEAMLEAD);
|
||||
$this->importReportingFixture(User::ROLE_TEAMLEAD);
|
||||
@@ -80,7 +80,7 @@ abstract class AbstractUsersPeriodControllerTest extends ControllerBaseTest
|
||||
/**
|
||||
* @dataProvider getTestData
|
||||
*/
|
||||
public function testUsersPeriodReportExport(string $dataType, string $title)
|
||||
public function testUsersPeriodReportExport(string $dataType, string $title): void
|
||||
{
|
||||
$client = $this->getClientForAuthenticatedUser(User::ROLE_SUPER_ADMIN);
|
||||
$this->importReportingFixture(User::ROLE_SUPER_ADMIN);
|
||||
|
||||
@@ -24,12 +24,12 @@ use Symfony\Component\HttpKernel\HttpKernelBrowser;
|
||||
*/
|
||||
class CustomerMonthlyProjectsControllerTest extends ControllerBaseTest
|
||||
{
|
||||
public function testReportIsSecure()
|
||||
public function testReportIsSecure(): void
|
||||
{
|
||||
$this->assertUrlIsSecured('/reporting/customer/monthly_projects/view');
|
||||
}
|
||||
|
||||
public function testExportReportIsSecure()
|
||||
public function testExportReportIsSecure(): void
|
||||
{
|
||||
$this->assertUrlIsSecured('/reporting/customer/monthly_projects/export');
|
||||
}
|
||||
@@ -73,7 +73,7 @@ class CustomerMonthlyProjectsControllerTest extends ControllerBaseTest
|
||||
return $client;
|
||||
}
|
||||
|
||||
public function testReport()
|
||||
public function testReport(): void
|
||||
{
|
||||
$client = $this->prepareReport();
|
||||
|
||||
@@ -83,7 +83,7 @@ class CustomerMonthlyProjectsControllerTest extends ControllerBaseTest
|
||||
self::assertGreaterThan(0, $rows->count());
|
||||
}
|
||||
|
||||
public function testExport()
|
||||
public function testExport(): void
|
||||
{
|
||||
$client = $this->prepareReport();
|
||||
|
||||
|
||||
@@ -23,12 +23,12 @@ use App\Timesheet\DateTimeFactory;
|
||||
*/
|
||||
class ProjectDateRangeControllerTest extends ControllerBaseTest
|
||||
{
|
||||
public function testReportIsSecure()
|
||||
public function testReportIsSecure(): void
|
||||
{
|
||||
$this->assertUrlIsSecured('/reporting/project_daterange');
|
||||
}
|
||||
|
||||
public function testReport()
|
||||
public function testReport(): void
|
||||
{
|
||||
$client = $this->getClientForAuthenticatedUser(User::ROLE_ADMIN);
|
||||
|
||||
|
||||
@@ -21,12 +21,12 @@ use App\Tests\DataFixtures\TimesheetFixtures;
|
||||
*/
|
||||
class ProjectDetailsControllerTest extends ControllerBaseTest
|
||||
{
|
||||
public function testReportIsSecure()
|
||||
public function testReportIsSecure(): void
|
||||
{
|
||||
$this->assertUrlIsSecured('/reporting/project_details');
|
||||
}
|
||||
|
||||
public function testReport()
|
||||
public function testReport(): void
|
||||
{
|
||||
$client = $this->getClientForAuthenticatedUser(User::ROLE_ADMIN);
|
||||
|
||||
|
||||
@@ -21,12 +21,12 @@ use App\Tests\DataFixtures\TimesheetFixtures;
|
||||
*/
|
||||
class ProjectInactiveControllerTest extends ControllerBaseTest
|
||||
{
|
||||
public function testReportIsSecure()
|
||||
public function testReportIsSecure(): void
|
||||
{
|
||||
$this->assertUrlIsSecured('/reporting/project_inactive');
|
||||
}
|
||||
|
||||
public function testReport()
|
||||
public function testReport(): void
|
||||
{
|
||||
$client = $this->getClientForAuthenticatedUser(User::ROLE_ADMIN);
|
||||
|
||||
|
||||
@@ -21,12 +21,12 @@ use App\Tests\DataFixtures\TimesheetFixtures;
|
||||
*/
|
||||
class ProjectViewControllerTest extends ControllerBaseTest
|
||||
{
|
||||
public function testReportIsSecure()
|
||||
public function testReportIsSecure(): void
|
||||
{
|
||||
$this->assertUrlIsSecured('/reporting/project_view');
|
||||
}
|
||||
|
||||
public function testReport()
|
||||
public function testReport(): void
|
||||
{
|
||||
$client = $this->getClientForAuthenticatedUser(User::ROLE_ADMIN);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user