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();

tests/Controller/ElasticsearchComponentTemplateControllerTest.php

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

77
use App\Model\CallRequestModel;
88

9-
#[Route('/admin')]
109
class ElasticsearchComponentTemplateControllerTest extends AbstractAppControllerTest
1110
{
12-
#[Route('/component-templates', name: 'component_templates')]
1311
public function testComponent(): void
1412
{
1513
$this->client->request('GET', '/admin/component-templates');
@@ -24,7 +22,6 @@ public function testComponent(): void
2422
}
2523
}
2624

27-
#[Route('/component-templates/create', name: 'component_templates_create')]
2825
public function testCreate(): void
2926
{
3027
$this->client->request('GET', '/admin/component-templates/create');
@@ -125,7 +122,6 @@ public function testCreateCopy(): void
125122
}
126123
}
127124

128-
#[Route('/component-templates/{name}', name: 'component_templates_read')]
129125
public function testRead404(): void
130126
{
131127
$this->client->request('GET', '/admin/component-templates/'.uniqid());
@@ -152,7 +148,6 @@ public function testRead(): void
152148
}
153149
}
154150

155-
#[Route('/component-templates/{name}/update', name: 'component_templates_update')]
156151
public function testUpdate404(): void
157152
{
158153
$this->client->request('GET', '/admin/component-templates/'.uniqid().'/update');
@@ -190,7 +185,6 @@ public function testUpdate(): void
190185
}
191186
}
192187

193-
#[Route('/component-templates/{name}/settings', name: 'component_templates_read_settings')]
194188
public function testSettings404(): void
195189
{
196190
$this->client->request('GET', '/admin/component-templates/'.uniqid().'/settings');
@@ -217,7 +211,6 @@ public function testSettings(): void
217211
}
218212
}
219213

220-
#[Route('/component-templates/{name}/mappings', name: 'component_templates_read_mappings')]
221214
public function testMappings404(): void
222215
{
223216
$this->client->request('GET', '/admin/component-templates/'.uniqid().'/mappings');
@@ -244,7 +237,6 @@ public function testMappings(): void
244237
}
245238
}
246239

247-
#[Route('/component-templates/{name}/delete', name: 'component_templates_delete')]
248240
public function testDelete404(): void
249241
{
250242
$this->client->request('GET', '/admin/component-templates/'.uniqid().'/delete');

tests/Controller/ElasticsearchConsoleControllerTest.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 ElasticsearchConsoleControllerTest extends AbstractAppControllerTest
98
{
10-
#[Route('/console', name: 'console')]
119
public function testIndex(): void
1210
{
1311
$this->client->request('GET', '/admin/console');

tests/Controller/ElasticsearchDanglingIndicesControllerTest.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 ElasticsearchDanglingIndicesControllerTest extends AbstractAppControllerTest
98
{
10-
#[Route('/dangling-indices', name: 'dangling_indices')]
119
public function testIndex(): void
1210
{
1311
$this->client->request('GET', '/admin/dangling-indices');

tests/Controller/ElasticsearchDataStreamControllerTest.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 ElasticsearchDataStreamControllerTest extends AbstractAppControllerTest
98
{
10-
#[Route('/data-streams', name: 'data_streams')]
119
public function testIndex(): void
1210
{
1311
$this->client->request('GET', '/admin/data-streams');
@@ -22,7 +20,6 @@ public function testIndex(): void
2220
}
2321
}
2422

25-
#[Route('/data-streams/create', name: 'data_streams_create')]
2623
public function testCreate(): void
2724
{
2825
$this->client->request('GET', '/admin/data-streams/create');
@@ -37,7 +34,6 @@ public function testCreate(): void
3734
}
3835
}
3936

40-
#[Route('/data-streams/{name}', name: 'data_streams_read')]
4137
public function testRead404(): void
4238
{
4339
$this->client->request('GET', '/admin/data-streams/'.uniqid());
@@ -49,7 +45,6 @@ public function testRead404(): void
4945
}
5046
}
5147

52-
#[Route('/data-streams/{name}/stats', name: 'data_streams_read_stats')]
5348
public function testStats404(): void
5449
{
5550
$this->client->request('GET', '/admin/data-streams/'.uniqid().'/stats');
@@ -61,7 +56,6 @@ public function testStats404(): void
6156
}
6257
}
6358

64-
#[Route('/data-streams/{name}/delete', name: 'data_streams_delete')]
6559
public function testDelete404(): void
6660
{
6761
$this->client->request('GET', '/admin/data-streams/'.uniqid().'/delete');

tests/Controller/ElasticsearchDeprecationControllerTest.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 ElasticsearchDeprecationControllerTest extends AbstractAppControllerTest
98
{
10-
#[Route('/deprecations', name: 'deprecations')]
119
public function testIndex(): void
1210
{
1311
$this->client->request('GET', '/admin/deprecations');

0 commit comments

Comments
 (0)