diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..4371c98
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,50 @@
+name: Tests
+
+# For most extensions, this workflow should not need changing;
+# simply commit it to your repository.
+#
+# See the README for full details and configuration instructions:
+# - https://github.com/phpbb-extensions/test-framework
+#
+on:
+ push:
+ # Run tests when commits are pushed to these branches in your repo,
+ # or remove this branches section to run tests on all your branches
+ branches:
+ - main
+
+ pull_request:
+ # Run tests when pull requests are made on these branches in your repo,
+ # or remove this branches section to run tests on all your branches
+ branches:
+ - main
+
+jobs:
+ call-tests:
+ name: Extension tests
+ # Set the phpBB branch to test your extension with after the @ symbol
+ # - 3.3.x: Targets the phpBB 3.3.x release line
+ # - master: Targets the latest development version of phpBB (master branch)
+ uses: phpbb-extensions/test-framework/.github/workflows/tests.yml@3.3.x
+ with:
+ # Your extension vendor/package name
+ EXTNAME: phpbbmodders/inserticonifyscript
+
+ # Run MySQL/MariaDB tests?
+ RUN_MYSQL_JOBS: 0
+
+ # Run PostgreSQL tests?
+ RUN_PGSQL_JOBS: 0
+
+ # Run MSSQL and SQLite3 tests?
+ RUN_MSSQL_JOBS: 0
+
+ # Run Windows IIS & PostgreSQL tests?
+ RUN_WINDOWS_JOBS: 0
+
+ # Preferred PHP version used for all test jobs.
+ PRIMARY_PHP_VERSION: '8.2'
+
+ # The MySQL and PostgreSQL jobs run tests across multiple PHP versions.
+ # List the PHP versions you want your extension tested with.
+ PHP_VERSION_MATRIX: '["8.2", "8.3", "8.4"]'
diff --git a/event/listener.php b/event/listener.php
index 457b264..dcdbeac 100644
--- a/event/listener.php
+++ b/event/listener.php
@@ -14,26 +14,26 @@
class listener implements EventSubscriberInterface
{
- /** @var \phpbb\template\template */
- protected $template;
+ /** @var \phpbb\template\template */
+ protected $template;
- /**
- * @param \phpbb\template\template $template Template object
- */
- public function __construct(\phpbb\template\template $template)
- {
- $this->template = $template;
- }
+ /**
+ * @param \phpbb\template\template $template Template object
+ */
+ public function __construct(\phpbb\template\template $template)
+ {
+ $this->template = $template;
+ }
- public static function getSubscribedEvents()
- {
- return [
- 'core.page_footer' => 'on_page_footer',
- ];
- }
+ public static function getSubscribedEvents()
+ {
+ return [
+ 'core.page_footer' => 'on_page_footer',
+ ];
+ }
- public function on_page_footer($event)
- {
- $this->template->assign_var('ICONIFY_SCRIPT', '');
- }
+ public function on_page_footer($event)
+ {
+ $this->template->assign_var('ICONIFY_SCRIPT', '');
+ }
}