Tests CopyProcess.
More...
Tests CopyProcess.
Definition at line 19 of file CopyProcessTest.php.
◆ providerCopyStyles()
ComponentInstaller\Test\Process\CopyProcessTest::providerCopyStyles |
( |
| ) |
|
Definition at line 49 of file CopyProcessTest.php.
References array.
53 'name' =>
'components/package',
59 'tests/ComponentInstaller/Test/Resources/test.css',
64 $packages =
array($package);
66 'package/tests/ComponentInstaller/Test/Resources/test.css',
71 'name' =>
'components/packagewithtwostyles',
77 'tests/ComponentInstaller/Test/Resources/test.css',
78 'tests/ComponentInstaller/Test/Resources/test2.css',
83 $packages =
array($package);
85 'packagewithtwostyles/tests/ComponentInstaller/Test/Resources/test.css',
86 'packagewithtwostyles/tests/ComponentInstaller/Test/Resources/test2.css',
91 'name' =>
'components/stylethatdoesnotexist',
97 'tests/ComponentInstaller/Test/Resources/test.css',
98 'tests/ComponentInstaller/Test/Resources/test-not-found.css',
103 $packages =
array($package);
105 'stylethatdoesnotexist/tests/ComponentInstaller/Test/Resources/test.css',
110 'name' =>
'components/allassets',
111 'version' =>
'1.2.3',
114 'component' =>
array(
116 'tests/ComponentInstaller/Test/Resources/test.css',
119 'tests/ComponentInstaller/Test/Resources/img.jpg',
120 'tests/ComponentInstaller/Test/Resources/img2.jpg',
123 'tests/ComponentInstaller/Test/Resources/test.js' 128 $packages =
array($package);
130 'allassets/tests/ComponentInstaller/Test/Resources/test.css',
131 'allassets/tests/ComponentInstaller/Test/Resources/img.jpg',
132 'allassets/tests/ComponentInstaller/Test/Resources/img2.jpg',
133 'allassets/tests/ComponentInstaller/Test/Resources/test.js',
138 'name' =>
'components/differentcomponentname',
139 'version' =>
'1.2.3',
142 'component' =>
array(
143 'name' =>
'diffname',
145 'tests/ComponentInstaller/Test/Resources/img.jpg',
150 $packages =
array($package);
152 'diffname/tests/ComponentInstaller/Test/Resources/img.jpg',
157 'name' =>
'components/twopackages1',
158 'version' =>
'1.2.3',
161 'component' =>
array(
163 'tests/ComponentInstaller/Test/Resources/img.jpg',
169 'name' =>
'components/twopackages2',
170 'version' =>
'1.2.3',
173 'component' =>
array(
174 'name' =>
'twopackages2-diff',
176 'tests/ComponentInstaller/Test/Resources/img2.jpg',
181 $packages =
array($package, $package2);
183 'twopackages1/tests/ComponentInstaller/Test/Resources/img.jpg',
184 'twopackages2-diff/tests/ComponentInstaller/Test/Resources/img2.jpg',
189 'name' =>
'components/differentcomponentname',
190 'version' =>
'1.2.3',
193 'component' =>
array(
194 'name' =>
'diffname',
196 'tests/ComponentInstaller/Test/Resources/*.jpg',
201 $packages =
array($package);
203 'diffname/tests/ComponentInstaller/Test/Resources/img.jpg',
204 'diffname/tests/ComponentInstaller/Test/Resources/img2.jpg',
Create styles array
The data for the language used.
◆ setUp()
ComponentInstaller\Test\Process\CopyProcessTest::setUp |
( |
| ) |
|
Definition at line 26 of file CopyProcessTest.php.
29 $this->process =
new CopyProcess($this->composer, $this->io);
◆ testCopyStyles()
ComponentInstaller\Test\Process\CopyProcessTest::testCopyStyles |
( |
|
$packages, |
|
|
|
$files |
|
) |
| |
testCopy
providerCopyStyles
- Parameters
-
array | $packages | |
array | $files | |
Definition at line 39 of file CopyProcessTest.php.
References $file, and $files.
42 $this->process->init();
43 $this->process->copy($packages);
45 $this->assertFileExists($this->componentDir.
'/' . $file, sprintf(
'Failed to find the destination file: %s', $file));
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
◆ $process
ComponentInstaller\Test\Process\CopyProcessTest::$process |
|
protected |
The documentation for this class was generated from the following file:
- libs/composer/vendor/robloach/component-installer/tests/ComponentInstaller/Test/Process/CopyProcessTest.php