mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/10586] Adding the extensions used by the tests
PHPBB3-10586
This commit is contained in:
17
tests/functional/fixtures/ext/foo/bar/controller.php
Normal file
17
tests/functional/fixtures/ext/foo/bar/controller.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
class phpbb_ext_foo_bar_controller implements phpbb_extension_controller_interface
|
||||
{
|
||||
public function handle()
|
||||
{
|
||||
global $template;
|
||||
$template->set_ext_dir_prefix($phpbb_root_path . 'ext/foo/bar/');
|
||||
|
||||
$template->set_filenames(array(
|
||||
'body' => 'index_body.html'
|
||||
));
|
||||
|
||||
page_header('Test extension');
|
||||
page_footer();
|
||||
}
|
||||
}
|
6
tests/functional/fixtures/ext/foo/bar/ext.php
Normal file
6
tests/functional/fixtures/ext/foo/bar/ext.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
class phpbb_ext_foo_bar_ext extends phpbb_extension_base
|
||||
{
|
||||
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
<!-- INCLUDE overall_header.html -->
|
||||
|
||||
<div id="welcome">This is for testing purposes.</div>
|
||||
|
||||
<!-- INCLUDE overall_footer.html -->
|
Reference in New Issue
Block a user