summaryrefslogtreecommitdiff
path: root/_testing/tests/testing/inttests_hooks.test.php
diff options
context:
space:
mode:
Diffstat (limited to '_testing/tests/testing/inttests_hooks.test.php')
-rw-r--r--_testing/tests/testing/inttests_hooks.test.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/_testing/tests/testing/inttests_hooks.test.php b/_testing/tests/testing/inttests_hooks.test.php
new file mode 100644
index 000000000..d3fdbd738
--- /dev/null
+++ b/_testing/tests/testing/inttests_hooks.test.php
@@ -0,0 +1,20 @@
+<?php
+
+/**
+ * @group integration
+ */
+class InttestsHooksTest extends PHPUnit_Framework_TestCase {
+
+ function testHookTriggering() {
+ $request = new TestRequest();
+
+ $hookTriggered = false;
+ $request->hook('TPL_CONTENT_DISPLAY', 'AFTER', function() use (&$hookTriggered) {
+ $hookTriggered = true;
+ });
+
+ $request->execute();
+
+ $this->assertTrue($hookTriggered, 'Hook was not triggered as expected!');
+ }
+}