Tests RequireCssProcess.
More...
Tests RequireCssProcess.
Definition at line 20 of file RequireCssProcessTest.php.
◆ providerPackageStyles()
ComponentInstaller\Test\Process\RequireCssProcessTest::providerPackageStyles |
( |
| ) |
|
Definition at line 48 of file RequireCssProcessTest.php.
References array.
52 'name' =>
'components/package',
53 'type' =>
'component',
57 'tests/ComponentInstaller/Test/Resources/test.css',
63 $packages =
array($package);
66 'tests/ComponentInstaller/Test/Resources/test.css' =>
array(
67 realpath(
'tests/ComponentInstaller/Test/Resources/test.css'),
71 $tests[] =
array($packages,
array(), $expected);
75 'name' =>
'components/package2',
76 'type' =>
'component',
80 'tests/ComponentInstaller/Test/Resources/test-not-found.css',
86 $packages =
array($package, $package2);
89 'tests/ComponentInstaller/Test/Resources/test.css' =>
array(
90 realpath(
'tests/ComponentInstaller/Test/Resources/test.css'),
94 $tests[] =
array($packages,
array(), $expected);
98 'name' =>
'components/package3',
99 'type' =>
'component',
101 'component' =>
array(
103 'tests/ComponentInstaller/Test/Resources/test2.css',
109 $packages =
array($package, $package3);
112 'tests/ComponentInstaller/Test/Resources/test.css' =>
array(
113 realpath(
'tests/ComponentInstaller/Test/Resources/test.css'),
117 'tests/ComponentInstaller/Test/Resources/test2.css' =>
array(
118 realpath(
'tests/ComponentInstaller/Test/Resources/test2.css'),
122 $tests[] =
array($packages,
array(), $expected);
126 'name' =>
'components/package4',
127 'type' =>
'component',
129 'component' =>
array(
131 'tests/ComponentInstaller/Test/Resources/*.css',
137 $packages =
array($package);
140 'tests/ComponentInstaller/Test/Resources/*.css' =>
array(
141 realpath(
'tests/ComponentInstaller/Test/Resources/test.css'),
142 realpath(
'tests/ComponentInstaller/Test/Resources/test2.css'),
146 $tests[] =
array($packages,
array(), $expected);
Create styles array
The data for the language used.
◆ setUp()
ComponentInstaller\Test\Process\RequireCssProcessTest::setUp |
( |
| ) |
|
◆ testPackageStyles()
ComponentInstaller\Test\Process\RequireCssProcessTest::testPackageStyles |
( |
array |
$packages, |
|
|
array |
$config, |
|
|
|
$expected = null |
|
) |
| |
testPackageStyles
providerPackageStyles
- Parameters
-
array | $packages | |
array | $config | |
array | $expected | |
Definition at line 40 of file RequireCssProcessTest.php.
References $result, and array.
42 $this->composer->getConfig()->merge(
array(
'config' =>
$config));
43 $this->process->init();
44 $result = $this->process->packageStyles($packages);
45 $this->assertEquals($expected,
$result);
Create styles array
The data for the language used.
◆ $process
ComponentInstaller\Test\Process\RequireCssProcessTest::$process |
|
protected |
The documentation for this class was generated from the following file: