Release 2.12 (#4609)
This commit is contained in:
@@ -29,7 +29,7 @@ abstract class AbstractActionsSubscriberTest extends TestCase
|
||||
return new $className($auth, $router);
|
||||
}
|
||||
|
||||
protected function assertGetSubscribedEvent(string $className, string $name)
|
||||
public function assertGetSubscribedEvent(string $className, string $name): void
|
||||
{
|
||||
$this->assertTrue(method_exists($className, 'getSubscribedEvents'));
|
||||
$events = $className::getSubscribedEvents();
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\EventSubscriber\Actions\ActivitiesSubscriber;
|
||||
*/
|
||||
class ActivitiesSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(ActivitiesSubscriber::class, 'activities');
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\EventSubscriber\Actions\ActivitySubscriber;
|
||||
*/
|
||||
class ActivitySubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(ActivitySubscriber::class, 'activity');
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\EventSubscriber\Actions\CustomerSubscriber;
|
||||
*/
|
||||
class CustomerSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(CustomerSubscriber::class, 'customer');
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\EventSubscriber\Actions\CustomersSubscriber;
|
||||
*/
|
||||
class CustomersSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(CustomersSubscriber::class, 'customers');
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\EventSubscriber\Actions\InvoiceArchiveSubscriber;
|
||||
*/
|
||||
class InvoiceArchiveSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(InvoiceArchiveSubscriber::class, 'invoice_archive');
|
||||
}
|
||||
|
||||
@@ -19,12 +19,12 @@ use App\Model\InvoiceDocument;
|
||||
*/
|
||||
class InvoiceDocumentSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(InvoiceDocumentSubscriber::class, 'invoice_document');
|
||||
}
|
||||
|
||||
public function testActions()
|
||||
public function testActions(): void
|
||||
{
|
||||
$sut = $this->createSubscriber(InvoiceDocumentSubscriber::class, true);
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\EventSubscriber\Actions\InvoiceSubscriber;
|
||||
*/
|
||||
class InvoiceSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(InvoiceSubscriber::class, 'invoice');
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\EventSubscriber\Actions\InvoiceTemplateSubscriber;
|
||||
*/
|
||||
class InvoiceTemplateSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(InvoiceTemplateSubscriber::class, 'invoice_template');
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\EventSubscriber\Actions\InvoiceTemplatesSubscriber;
|
||||
*/
|
||||
class InvoiceTemplatesSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(InvoiceTemplatesSubscriber::class, 'invoice_templates');
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\EventSubscriber\Actions\PermissionsSubscriber;
|
||||
*/
|
||||
class PermissionsSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(PermissionsSubscriber::class, 'user_permissions');
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\EventSubscriber\Actions\PluginSubscriber;
|
||||
*/
|
||||
class PluginSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(PluginSubscriber::class, 'plugin');
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\EventSubscriber\Actions\ProjectSubscriber;
|
||||
*/
|
||||
class ProjectSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(ProjectSubscriber::class, 'project');
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\EventSubscriber\Actions\ProjectsSubscriber;
|
||||
*/
|
||||
class ProjectsSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(ProjectsSubscriber::class, 'projects');
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\EventSubscriber\Actions\TagSubscriber;
|
||||
*/
|
||||
class TagSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(TagSubscriber::class, 'tag');
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\EventSubscriber\Actions\TagsSubscriber;
|
||||
*/
|
||||
class TagsSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(TagsSubscriber::class, 'tags');
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\EventSubscriber\Actions\TeamSubscriber;
|
||||
*/
|
||||
class TeamSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(TeamSubscriber::class, 'team');
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\EventSubscriber\Actions\TeamsSubscriber;
|
||||
*/
|
||||
class TeamsSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(TeamsSubscriber::class, 'teams');
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ use App\EventSubscriber\Actions\TimesheetSubscriber;
|
||||
*/
|
||||
class TimesheetSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(TimesheetSubscriber::class, 'timesheet');
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\EventSubscriber\Actions\TimesheetTeamSubscriber;
|
||||
*/
|
||||
class TimesheetTeamSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(TimesheetTeamSubscriber::class, 'timesheet_team');
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ use App\EventSubscriber\Actions\TimesheetsSubscriber;
|
||||
*/
|
||||
class TimesheetsSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(TimesheetsSubscriber::class, 'timesheets');
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ use App\EventSubscriber\Actions\TimesheetsTeamSubscriber;
|
||||
*/
|
||||
class TimesheetsTeamSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(TimesheetsTeamSubscriber::class, 'timesheets_team');
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\EventSubscriber\Actions\UserSubscriber;
|
||||
*/
|
||||
class UserSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(UserSubscriber::class, 'user');
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\EventSubscriber\Actions\UsersSubscriber;
|
||||
*/
|
||||
class UsersSubscriberTest extends AbstractActionsSubscriberTest
|
||||
{
|
||||
public function testEventName()
|
||||
public function testEventName(): void
|
||||
{
|
||||
$this->assertGetSubscribedEvent(UsersSubscriber::class, 'users');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user