helper = new LargeFileHelper(); } public static function dataFileNameProvider(): array { $path = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR; return [ [ $path . 'lorem.txt', 446 ], [ $path . 'strängé filename (duplicate #2).txt', 446 ], ]; } #[\PHPUnit\Framework\Attributes\DataProvider('dataFileNameProvider')] public function XtestGetFileSizeViaCurl($filename, $fileSize) { if (!extension_loaded('curl')) { $this->markTestSkipped( 'The PHP curl extension is required for this test.' ); } if (Server::get(IniGetWrapper::class)->getString('open_basedir') !== '') { $this->markTestSkipped( 'The PHP curl extension does not work with the file:// protocol when open_basedir is enabled.' ); } $this->assertSame( $fileSize, $this->helper->getFileSizeViaCurl($filename) ); } #[\PHPUnit\Framework\Attributes\DataProvider('dataFileNameProvider')] public function testGetFileSizeViaExec($filename, $fileSize): void { if (escapeshellarg('strängé') !== '\'strängé\'') { $this->markTestSkipped('Your escapeshell args removes accents'); } if (!Util::isFunctionEnabled('exec')) { $this->markTestSkipped( 'The exec() function needs to be enabled for this test.' ); } $this->assertSame( $fileSize, $this->helper->getFileSizeViaExec($filename) ); } #[\PHPUnit\Framework\Attributes\DataProvider('dataFileNameProvider')] public function testGetFileSizeNative($filename, $fileSize): void { $this->assertSame( $fileSize, $this->helper->getFileSizeNative($filename) ); } } n value='plugin-hooks'>plugin-hooks Mirror of redmine code source: https://github.com/redmine/redminewww-data
summaryrefslogtreecommitdiffstats
path: root/test/fixtures/enabled_modules.yml
blob: d833c20b8fedf669c98a586afa937a26c0e4c311 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
--- 
enabled_modules_001: 
  name: issue_tracking
  project_id: 1
  id: 1
enabled_modules_002: 
  name: time_tracking
  project_id: 1
  id: 2
enabled_modules_003: 
  name: news
  project_id: 1
  id: 3
enabled_modules_004: 
  name: documents
  project_id: 1
  id: 4
enabled_modules_005: 
  name: files
  project_id: 1
  id: 5
enabled_modules_006: 
  name: wiki
  project_id: 1
  id: 6
enabled_modules_007: 
  name: repository
  project_id: 1
  id: 7
enabled_modules_008: 
  name: boards
  project_id: 1
  id: 8
enabled_modules_009: 
  name: repository
  project_id: 3
  id: 9
enabled_modules_010: 
  name: wiki
  project_id: 3
  id: 10
enabled_modules_011: 
  name: issue_tracking
  project_id: 2
  id: 11
enabled_modules_012: 
  name: time_tracking
  project_id: 3
  id: 12
enabled_modules_013: 
  name: issue_tracking
  project_id: 3
  id: 13
enabled_modules_014: 
  name: issue_tracking
  project_id: 5
  id: 14
enabled_modules_015: 
  name: wiki
  project_id: 2
  id: 15
enabled_modules_016: 
  name: boards
  project_id: 2
  id: 16
enabled_modules_017: 
  name: calendar
  project_id: 1
  id: 17
enabled_modules_018: 
  name: gantt 
  project_id: 1
  id: 18
enabled_modules_019: 
  name: calendar
  project_id: 2
  id: 19
enabled_modules_020: 
  name: gantt 
  project_id: 2
  id: 20
enabled_modules_021: 
  name: calendar
  project_id: 3
  id: 21
enabled_modules_022: 
  name: gantt
  project_id: 3
  id: 22
enabled_modules_023: 
  name: calendar
  project_id: 5
  id: 23
enabled_modules_024: 
  name: gantt 
  project_id: 5
  id: 24
enabled_modules_025: 
  name: news 
  project_id: 2
  id: 25
enabled_modules_026: 
  name: repository
  project_id: 2
  id: 26