Skip to content

Commit 4f990f4

Browse files
committed
Clean up some tests
1 parent cfa8f41 commit 4f990f4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
require_once PLUGIN_ROOT . '/vendor/autoload.php';
2727
require_once CORE_PATH . 'config/bootstrap.php';
28-
require_once CORE_PATH . 'src' . DS . 'I18n' . DS . 'functions_global.php';
28+
require_once CORE_PATH . 'src' . DS . 'Core' . DS . 'functions_global.php';
2929

3030
Configure::write('App', [
3131
'encoding' => 'UTF-8',

tests/test_app/templates/Test/view.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
*/
99
?>
1010
<div class="test-template">
11-
<div class="message"><?= htmlspecialchars($message ?? '', ENT_QUOTES, 'UTF-8') ?></div>
11+
<div class="message"><?= h($message ?? '') ?></div>
1212
<div class="count">Count: <?= $count ?></div>
13-
</div>
13+
</div>

tests/test_app/templates/element/test_item.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
*/
99
?>
1010
<div class="test-item">
11-
<h2><?= htmlspecialchars($title ?? '', ENT_QUOTES, 'UTF-8') ?></h2>
12-
<p><?= htmlspecialchars($content ?? '', ENT_QUOTES, 'UTF-8') ?></p>
11+
<h2><?= h($title ?? '') ?></h2>
12+
<p><?= h($content ?? '') ?></p>
1313
</div>

0 commit comments

Comments
 (0)