Skip to content

Commit 8d1203b

Browse files
committed
Remove unused code
1 parent d95f779 commit 8d1203b

5 files changed

Lines changed: 0 additions & 135 deletions

File tree

tests/Adapter/Builder/AsyncAwsAdapterDefinitionBuilderTest.php

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ public function provideValidOptions()
3737
'bucket' => 'bucket',
3838
'prefix' => 'prefix/path',
3939
]];
40-
41-
// yield 'options' => [[
42-
// 'client' => 'my_client',
43-
// 'bucket' => 'bucket',
44-
// 'options' => [
45-
// 'ServerSideEncryption' => 'AES256',
46-
// ],
47-
// ]];
4840
}
4941

5042
/**
@@ -58,27 +50,4 @@ public function testCreateDefinition($options)
5850

5951
$this->assertSame(S3FilesystemV2::class, $this->createBuilder()->createDefinition($options)->getClass());
6052
}
61-
62-
// public function testOptionsBehavior()
63-
// {
64-
// if (!class_exists(S3FilesystemV2::class)) {
65-
// $this->markTestSkipped();
66-
// }
67-
//
68-
// $definition = $this->createBuilder()->createDefinition([
69-
// 'client' => 'my_client',
70-
// 'bucket' => 'bucket',
71-
// 'prefix' => 'prefix/path',
72-
// 'options' => [
73-
// 'ServerSideEncryption' => 'AES256',
74-
// ],
75-
// ]);
76-
//
77-
// $this->assertSame(S3FilesystemV2::class, $definition->getClass());
78-
// $this->assertInstanceOf(Reference::class, $definition->getArgument(0));
79-
// $this->assertSame('my_client', (string) $definition->getArgument(0));
80-
// $this->assertSame('bucket', $definition->getArgument(1));
81-
// $this->assertSame('prefix/path', $definition->getArgument(2));
82-
// $this->assertSame(['ServerSideEncryption' => 'AES256'], $definition->getArgument(3));
83-
// }
8453
}

tests/Adapter/options.yaml

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,12 @@ fs_aws:
1212
bucket: 'bucket_name'
1313
prefix: 'optional/path/prefix'
1414

15-
#fs_azure:
16-
# adapter: 'azure'
17-
# options:
18-
# client: 'azure_client_service'
19-
# container: 'container_name'
20-
# prefix: 'optional/path/prefix'
21-
2215
fs_cache:
2316
adapter: 'cache'
2417
options:
2518
store: 'memory'
2619
source: 'fs_local'
2720

28-
#fs_dropbox:
29-
# adapter: 'dropbox'
30-
# options:
31-
# client: 'dropbox_client_service'
32-
# prefix: 'optional/path/prefix'
33-
3421
fs_ftp:
3522
adapter: 'ftp'
3623
options:
@@ -68,21 +55,6 @@ fs_local:
6855
fs_memory:
6956
adapter: 'memory'
7057

71-
#fs_null:
72-
# adapter: 'null'
73-
74-
#fs_rackspace:
75-
# adapter: 'rackspace'
76-
# options:
77-
# container: 'rackspace_container_service'
78-
# prefix: 'optional/path/prefix'
79-
80-
#fs_replicate:
81-
# adapter: 'replicate'
82-
# options:
83-
# source: 'fs_aws'
84-
# replica: 'fs_local'
85-
8658
fs_sftp:
8759
adapter: 'sftp'
8860
options:
@@ -93,15 +65,3 @@ fs_sftp:
9365
privateKey: 'path/to/or/contents/of/privatekey'
9466
root: '/path/to/root'
9567
timeout: 10
96-
97-
#fs_webdav:
98-
# adapter: 'webdav'
99-
# options:
100-
# client: 'webdav_client_service'
101-
# prefix: 'optional/path/prefix'
102-
# use_stream_copy: false
103-
104-
#fs_zip:
105-
# adapter: 'zip'
106-
# options:
107-
# path: '%kernel.project_dir%/archive.zip'

tests/DependencyInjection/FlysystemExtensionTest.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,11 @@ public function provideFilesystems()
2727
{
2828
$fsNames = [
2929
'fs_aws',
30-
// 'fs_azure',
3130
'fs_cache',
32-
// 'fs_custom',
33-
// 'fs_dropbox',
3431
'fs_ftp',
3532
'fs_gcloud',
36-
// 'fs_lazy',
3733
'fs_local',
38-
// 'fs_rackspace',
39-
// 'fs_replicate',
4034
'fs_sftp',
41-
// 'fs_webdav',
42-
// 'fs_zip',
4335
];
4436

4537
foreach ($fsNames as $fsName) {
@@ -112,11 +104,7 @@ private function getClientMocks()
112104
return [
113105
'aws_client_service' => $this->createMock(S3Client::class),
114106
'asyncaws_client_service' => $asyncAws,
115-
// 'azure_client_service' => $this->createMock(BlobRestProxy::class),
116-
// 'dropbox_client_service' => $this->createMock(DropboxClient::class),
117107
'gcloud_client_service' => $gcloud,
118-
// 'rackspace_container_service' => $this->createMock(Container::class),
119-
// 'webdav_client_service' => $this->createMock(WebDAVClient::class),
120108
];
121109
}
122110
}

tests/Kernel/config/flysystem.yaml

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,12 @@ flysystem:
77
bucket: '%env(AWS_BUCKET)%'
88
prefix: 'optional/path/prefix'
99

10-
# fs_azure:
11-
# adapter: 'azure'
12-
# options:
13-
# client: 'azure_client_service'
14-
# container: 'container_name'
15-
# prefix: 'optional/path/prefix'
16-
1710
fs_cache:
1811
adapter: 'cache'
1912
options:
2013
store: 'cache.app'
2114
source: 'fs_local'
2215

23-
# fs_custom:
24-
# adapter: 'custom_adapter'
25-
26-
# fs_dropbox:
27-
# adapter: 'dropbox'
28-
# options:
29-
# client: 'dropbox_client_service'
30-
# prefix: 'optional/path/prefix'
31-
3216
fs_ftp:
3317
adapter: 'ftp'
3418
options:
@@ -71,21 +55,6 @@ flysystem:
7155
fs_memory:
7256
adapter: 'memory'
7357

74-
# fs_null:
75-
# adapter: 'null'
76-
77-
# fs_rackspace:
78-
# adapter: 'rackspace'
79-
# options:
80-
# container: 'rackspace_container_service'
81-
# prefix: 'optional/path/prefix'
82-
83-
# fs_replicate:
84-
# adapter: 'replicate'
85-
# options:
86-
# source: 'fs_aws'
87-
# replica: 'fs_local'
88-
8958
fs_sftp:
9059
adapter: 'sftp'
9160
options:
@@ -99,15 +68,3 @@ flysystem:
9968
directoryPerm: 0755
10069
permPrivate: 0700
10170
permPublic: 0744
102-
103-
# fs_webdav:
104-
# adapter: 'webdav'
105-
# options:
106-
# client: 'webdav_client_service'
107-
# prefix: 'optional/path/prefix'
108-
# use_stream_copy: false
109-
110-
# fs_zip:
111-
# adapter: 'zip'
112-
# options:
113-
# path: '%kernel.project_dir%/archive.zip'

tests/Kernel/config/services.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,9 @@ services:
77

88
# Aliases used to test the services construction
99
flysystem.test.fs_aws: { alias: 'fs_aws' }
10-
# flysystem.test.fs_azure: { alias: 'fs_azure' }
1110
flysystem.test.fs_cache: { alias: 'fs_cache' }
12-
# flysystem.test.fs_custom: { alias: 'fs_custom' }
13-
# flysystem.test.fs_dropbox: { alias: 'fs_dropbox' }
1411
flysystem.test.fs_ftp: { alias: 'fs_ftp' }
1512
flysystem.test.fs_gcloud: { alias: 'fs_gcloud' }
16-
# flysystem.test.fs_lazy: { alias: 'fs_lazy' }
1713
flysystem.test.fs_local: { alias: 'fs_local' }
1814
flysystem.test.fs_memory: { alias: 'fs_memory' }
19-
# flysystem.test.fs_null: { alias: 'fs_null' }
20-
# flysystem.test.fs_rackspace: { alias: 'fs_rackspace' }
21-
# flysystem.test.fs_replicate: { alias: 'fs_replicate' }
2215
flysystem.test.fs_sftp: { alias: 'fs_sftp' }
23-
# flysystem.test.fs_webdav: { alias: 'fs_webdav' }
24-
# flysystem.test.fs_zip: { alias: 'fs_zip' }

0 commit comments

Comments
 (0)