ClassyPreprocessUnchangedTest.php in Drupal 10
File
core/tests/Drupal/Tests/Core/Theme/ClassyPreprocessUnchangedTest.php
View source
<?php
namespace Drupal\Tests\Core\Theme;
use Drupal\Tests\UnitTestCase;
class ClassyPreprocessUnchangedTest extends UnitTestCase {
public function testNoNewPreprocess() {
$classy_theme_contents = file_get_contents($this->root . '/core/themes/classy/classy.theme');
$hash = md5($classy_theme_contents);
$this
->assertSame($hash, 'c42ff3a1291a258b42f0c44010cd28c7', "The file hash for classy.theme has changed. Any additions or changes to preprocess functions should be added to the themes that inherit Classy. \nIf the changes to classy.theme are not changes to preprocess functions, update the hash in this test to: '{$hash}' so it will pass.");
}
}