Skip to content

Commit a04bc8c

Browse files
remove PHP attributes in tests
1 parent 9e255eb commit a04bc8c

33 files changed

+0
-170
lines changed

tests/Controller/AppIndexDatabaseImportControllerTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
use App\Tests\Controller\AbstractAppControllerTest;
66

7-
#[Route('/admin')]
87
class AppIndexDatabaseImportControllerTest extends AbstractAppControllerTest
98
{
10-
#[Route('/indices/{index}/database-import', name: 'index_database_import')]
119
public function testIndex(): void
1210
{
1311
$this->client->request('GET', '/admin/indices/elasticsearch-admin-test/database-import');

tests/Controller/AppNotificationsControllerTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
use App\Tests\Controller\AbstractAppControllerTest;
66

7-
#[Route('/admin')]
87
class AppNotificationsControllerTest extends AbstractAppControllerTest
98
{
10-
#[Route('/app-notifications', name: 'app_notifications')]
119
public function testIndex(): void
1210
{
1311
$this->client->request('GET', '/admin/app-notifications');

tests/Controller/AppOfflineControllerTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
use App\Tests\Controller\AbstractAppControllerTest;
66

7-
#[Route('/admin')]
87
class AppOfflineControllerTest extends AbstractAppControllerTest
98
{
10-
#[Route('/app-uninstall', name: 'offline')]
119
public function testIndex(): void
1210
{
1311
$this->client->request('GET', '/offline');

tests/Controller/AppRoleControllerTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
use App\Tests\Controller\AbstractAppControllerTest;
66

7-
#[Route('/admin')]
87
class AppRoleControllerTest extends AbstractAppControllerTest
98
{
10-
#[Route('/app-roles', name: 'app_roles')]
119
public function testIndex(): void
1210
{
1311
$this->client->request('GET', '/admin/app-roles');
@@ -18,7 +16,6 @@ public function testIndex(): void
1816
$this->assertSelectorTextContains('h3', 'List');
1917
}
2018

21-
#[Route('/app-roles/create', name: 'app_roles_create')]
2219
public function testCreate(): void
2320
{
2421
$this->client->request('GET', '/admin/app-roles/create');
@@ -42,7 +39,6 @@ public function testCreate(): void
4239
$this->assertSelectorTextSame('h3', 'Update');
4340
}
4441

45-
#[Route('/app-roles/{role}', name: 'app_roles_read')]
4642
public function testRead404(): void
4743
{
4844
$this->client->request('GET', '/admin/app-roles/'.uniqid());
@@ -61,7 +57,6 @@ public function testRead(): void
6157
$this->assertSelectorTextSame('h3', 'Summary');
6258
}
6359

64-
#[Route('/app-roles/{role}/update', name: 'app_roles_update')]
6560
public function testUpdate404(): void
6661
{
6762
$this->client->request('GET', '/admin/app-roles/'.uniqid().'/update');
@@ -80,7 +75,6 @@ public function testUpdate(): void
8075
$this->assertSelectorTextSame('h3', 'Update');
8176
}
8277

83-
#[Route('/app-roles/{role}/delete', name: 'app_roles_delete')]
8478
public function testDelete404(): void
8579
{
8680
$this->client->request('GET', '/admin/app-roles/'.uniqid().'/delete');

tests/Controller/AppSubscriptionsControllerTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
use App\Tests\Controller\AbstractAppControllerTest;
66

7-
#[Route('/admin')]
87
class AppSubscriptionsControllerTest extends AbstractAppControllerTest
98
{
10-
#[Route('/subscriptions', name: 'app_subscriptions')]
119
public function testIndex(): void
1210
{
1311
$this->client->request('GET', '/admin/subscriptions');
@@ -18,7 +16,6 @@ public function testIndex(): void
1816
$this->assertSelectorTextContains('h3', 'List');
1917
}
2018

21-
#[Route('/subscriptions/create/{type}', name: 'app_subscriptions_create')]
2219
public function testCreate403(): void
2320
{
2421
$this->client->request('GET', '/admin/subscriptions/create/'.uniqid());
@@ -56,7 +53,6 @@ public function testCreateams(): void
5653
$this->assertSelectorTextSame('h3', 'Create Microsoft Teams Incoming Webhook');
5754
}
5855

59-
#[Route('/subscriptions/{id}/update', name: 'app_subscriptions_update')]
6056
public function testUpdate404(): void
6157
{
6258
$this->client->request('GET', '/admin/subscriptions/'.uniqid().'/update');

tests/Controller/AppUninstallControllerTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
use App\Tests\Controller\AbstractAppControllerTest;
66

7-
#[Route('/admin')]
87
class AppUninstallControllerTest extends AbstractAppControllerTest
98
{
10-
#[Route('/app-uninstall', name: 'app_uninstall')]
119
public function testIndex(): void
1210
{
1311
$this->client->request('GET', '/admin/app-uninstall');

tests/Controller/AppUpgradeControllerTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
use App\Tests\Controller\AbstractAppControllerTest;
66

7-
#[Route('/admin')]
87
class AppUpgradeControllerTest extends AbstractAppControllerTest
98
{
10-
#[Route('/app-upgrade', name: 'app_upgrade')]
119
public function testIndex(): void
1210
{
1311
$this->client->request('GET', '/admin/app-upgrade');

tests/Controller/AppUserControllerTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
use App\Tests\Controller\AbstractAppControllerTest;
66

7-
#[Route('/admin')]
87
class AppUserControllerTest extends AbstractAppControllerTest
98
{
10-
#[Route('/app-users', name: 'app_users')]
119
public function testIndex(): void
1210
{
1311
$this->client->request('GET', '/admin/app-users');
@@ -18,7 +16,6 @@ public function testIndex(): void
1816
$this->assertSelectorTextContains('h3', 'List');
1917
}
2018

21-
#[Route('/app-users/create', name: 'app_users_create')]
2219
public function testCreate(): void
2320
{
2421
$this->client->request('GET', '/admin/app-users/create');
@@ -44,7 +41,6 @@ public function testCreate(): void
4441
$this->assertSelectorTextSame('h3', 'Summary');
4542
}
4643

47-
#[Route('/app-users/{user}', name: 'app_users_read')]
4844
public function testRead404(): void
4945
{
5046
$this->client->request('GET', '/admin/app-users/'.uniqid());
@@ -65,7 +61,6 @@ public function testRead(): void
6561
$this->assertSelectorTextSame('h3', 'Summary');
6662
}
6763

68-
#[Route('/app-users/{user}/update', name: 'app_users_update')]
6964
public function testUpdate404(): void
7065
{
7166
$this->client->request('GET', '/admin/app-users/'.uniqid().'/update');
@@ -86,7 +81,6 @@ public function testUpdate(): void
8681
$this->assertSelectorTextSame('h3', 'Update');
8782
}
8883

89-
#[Route('/app-users/{user}/delete', name: 'app_users_delete')]
9084
public function testDelete404(): void
9185
{
9286
$this->client->request('GET', '/admin/app-users/'.uniqid().'/delete');

tests/Controller/ElasticsearchCatControllerTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
use App\Tests\Controller\AbstractAppControllerTest;
66

7-
#[Route('/admin')]
87
class ElasticsearchCatControllerTest extends AbstractAppControllerTest
98
{
10-
#[Route('/cat', name: 'cat')]
119
public function testIndex(): void
1210
{
1311
$this->client->request('GET', '/admin/cat');

tests/Controller/ElasticsearchClusterControllerTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
use App\Tests\Controller\AbstractAppControllerTest;
66

7-
#[Route('/admin')]
87
class ElasticsearchClusterControllerTest extends AbstractAppControllerTest
98
{
10-
#[Route('/cluster', name: 'cluster')]
119
public function testRead(): void
1210
{
1311
$clusterHealth = $this->elasticsearchClusterManager->getClusterHealth();
@@ -21,7 +19,6 @@ public function testRead(): void
2119
$this->assertSelectorTextSame('h3', 'Summary');
2220
}
2321

24-
#[Route('/cluster/allocation/explain', name: 'cluster_allocation_explain')]
2522
public function testAllocationExplain(): void
2623
{
2724
$clusterHealth = $this->elasticsearchClusterManager->getClusterHealth();
@@ -39,7 +36,6 @@ public function testAllocationExplain(): void
3936
}
4037
}
4138

42-
#[Route('/cluster/settings', name: 'cluster_settings')]
4339
public function testSettings(): void
4440
{
4541
$clusterHealth = $this->elasticsearchClusterManager->getClusterHealth();
@@ -57,7 +53,6 @@ public function testSettings(): void
5753
}
5854
}
5955

60-
#[Route('/cluster/settings/{type}/{setting}/edit', name: 'cluster_settings_edit')]
6156
public function testEditPersistent(): void
6257
{
6358
$clusterHealth = $this->elasticsearchClusterManager->getClusterHealth();
@@ -92,7 +87,6 @@ public function testEditTransient(): void
9287
}
9388
}
9489

95-
#[Route('/cluster/audit', name: 'cluster_audit')]
9690
public function testAudit(): void
9791
{
9892
$clusterHealth = $this->elasticsearchClusterManager->getClusterHealth();
@@ -106,7 +100,6 @@ public function testAudit(): void
106100
$this->assertSelectorTextSame('h3', 'Audit');
107101
}
108102

109-
#[Route('/cluster/disk-thresholds', name: 'cluster_disk_thresholds')]
110103
public function testDiskThresholds(): void
111104
{
112105
$clusterHealth = $this->elasticsearchClusterManager->getClusterHealth();

0 commit comments

Comments
 (0)