Definition at line 12 of file CopyrightTest.php.
◆ copyrightDataProvider()
copyrightDataProvider |
( |
| ) |
|
Definition at line 28 of file CopyrightTest.php.
33 foreach (glob(
__DIR__ .
'/../_files/changed_files*') as $listFile) {
39 $file = [
BP .
'/' . $file];
44 function (
$path) use ($blackList) {
49 foreach ($blackList as
$item) {
defined('TESTS_BP')||define('TESTS_BP' __DIR__
getFilesData($filePattern)
◆ getFilesData()
getFilesData |
( |
|
$filePattern | ) |
|
|
protected |
- Parameters
-
- Returns
- array
Definition at line 64 of file CopyrightTest.php.
67 foreach (glob(
__DIR__ .
'/_files/copyright/' . $filePattern) as $file) {
68 $fileData = include $file;
defined('TESTS_BP')||define('TESTS_BP' __DIR__
◆ testCopyright()
Definition at line 14 of file CopyrightTest.php.
16 $invoker = new \Magento\Framework\App\Utility\AggregateInvoker($this);
18 function ($filename) {
20 if (strpos($fileText,
'Copyright © Magento, Inc. All rights reserved.') ===
false) {
21 $this->fail(
'Copyright is missing or has wrong format ' . $filename);
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/static/testsuite/Magento/Test/Legacy/CopyrightTest.php