mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/17151] Use Twig and short array syntax in tests
PHPBB3-17151
This commit is contained in:
parent
69cc2a9734
commit
0ac97841cb
4 changed files with 17 additions and 17 deletions
|
@ -25,12 +25,12 @@ class main_info
|
|||
{
|
||||
function module()
|
||||
{
|
||||
return array(
|
||||
return [
|
||||
'filename' => '\foo\bar\acp\main_module',
|
||||
'title' => 'ACP_FOOBAR_TITLE',
|
||||
'modes' => array(
|
||||
'mode' => array('title' => 'ACP_FOOBAR_MODE', 'auth' => '', 'cat' => array('ACP_FOOBAR_TITLE')),
|
||||
),
|
||||
);
|
||||
'modes' => [
|
||||
'mode' => ['title' => 'ACP_FOOBAR_MODE', 'auth' => '', 'cat' => ['ACP_FOOBAR_TITLE']],
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,12 +17,12 @@ class main_info
|
|||
{
|
||||
function module()
|
||||
{
|
||||
return array(
|
||||
return [
|
||||
'filename' => '\foo\bar\mcp\main_module',
|
||||
'title' => 'MCP_FOOBAR_TITLE',
|
||||
'modes' => array(
|
||||
'mode' => array('title' => 'MCP_FOOBAR_MODE', 'auth' => '', 'cat' => array('MCP_FOOBAR_TITLE')),
|
||||
),
|
||||
);
|
||||
'modes' => [
|
||||
'mode' => ['title' => 'MCP_FOOBAR_MODE', 'auth' => '', 'cat' => ['MCP_FOOBAR_TITLE']],
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<!-- INCLUDE overall_header.html -->
|
||||
{% INCLUDE 'overall_header.html' %}
|
||||
<div id="content">MCP Extension Template Test Passed!</div>
|
||||
<!-- INCLUDE overall_footer.html -->
|
||||
{% INCLUDE 'overall_footer.html' %}
|
||||
|
|
|
@ -17,12 +17,12 @@ class main_info
|
|||
{
|
||||
function module()
|
||||
{
|
||||
return array(
|
||||
return [
|
||||
'filename' => '\foo\bar\ucp\main_module',
|
||||
'title' => 'UCP_FOOBAR_TITLE',
|
||||
'modes' => array(
|
||||
'mode' => array('title' => 'UCP_FOOBAR_MODE', 'auth' => '', 'cat' => array('UCP_FOOBAR_TITLE')),
|
||||
),
|
||||
);
|
||||
'modes' => [
|
||||
'mode' => ['title' => 'UCP_FOOBAR_MODE', 'auth' => '', 'cat' => ['UCP_FOOBAR_TITLE']],
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue