summaryrefslogtreecommitdiff
path: root/_test/tests
diff options
context:
space:
mode:
Diffstat (limited to '_test/tests')
-rw-r--r--_test/tests/test/basic.test.php26
-rw-r--r--_test/tests/test/globals.test.php6
-rw-r--r--_test/tests/test/plugins_defaults.test.php4
-rw-r--r--_test/tests/test/reset.test.php1
-rw-r--r--_test/tests/test/scope.test.php78
5 files changed, 57 insertions, 58 deletions
diff --git a/_test/tests/test/basic.test.php b/_test/tests/test/basic.test.php
index ca788a91d..b4926d2ba 100644
--- a/_test/tests/test/basic.test.php
+++ b/_test/tests/test/basic.test.php
@@ -4,19 +4,19 @@
* @group integration
*/
class InttestsBasicTest extends DokuWikiTest {
- /**
- * Execute the simplest possible request and expect
- * a dokuwiki page which obviously has the word "DokuWiki"
- * in it somewhere.
- */
- function testSimpleRun() {
- $request = new TestRequest();
+ /**
+ * Execute the simplest possible request and expect
+ * a dokuwiki page which obviously has the word "DokuWiki"
+ * in it somewhere.
+ */
+ function testSimpleRun() {
+ $request = new TestRequest();
- $response = $request->execute();
+ $response = $request->execute();
- $this->assertTrue(
- strpos($response->getContent(), 'DokuWiki') >= 0,
- 'DokuWiki was not a word in the output'
- );
- }
+ $this->assertTrue(
+ strpos($response->getContent(), 'DokuWiki') >= 0,
+ 'DokuWiki was not a word in the output'
+ );
+ }
}
diff --git a/_test/tests/test/globals.test.php b/_test/tests/test/globals.test.php
index b45b2bf83..180fd0d0d 100644
--- a/_test/tests/test/globals.test.php
+++ b/_test/tests/test/globals.test.php
@@ -5,9 +5,9 @@
*/
class InttestsGlobalsTest extends DokuWikiTest {
- /**
+ /**
* every request should be with its own variables
- */
+ */
function testFirstRun() {
global $EVENT_HANDLER;
@@ -24,7 +24,7 @@ class InttestsGlobalsTest extends DokuWikiTest {
);
$request->execute();
- }
+ }
/**
* @depends testFirstRun
diff --git a/_test/tests/test/plugins_defaults.test.php b/_test/tests/test/plugins_defaults.test.php
index a96dac931..953960bb7 100644
--- a/_test/tests/test/plugins_defaults.test.php
+++ b/_test/tests/test/plugins_defaults.test.php
@@ -5,7 +5,7 @@
*/
class InttestsPluginsDefaultTest extends DokuWikiTest {
- function testTestingPluginDisabledDefault() {
+ function testTestingPluginDisabledDefault() {
global $EVENT_HANDLER;
$request = new TestRequest();
@@ -20,5 +20,5 @@ class InttestsPluginsDefaultTest extends DokuWikiTest {
$request->execute();
$this->assertFalse($hookTriggered, 'Testing plugin did trigger!');
- }
+ }
}
diff --git a/_test/tests/test/reset.test.php b/_test/tests/test/reset.test.php
index 7c5978543..39c43cd3b 100644
--- a/_test/tests/test/reset.test.php
+++ b/_test/tests/test/reset.test.php
@@ -35,5 +35,4 @@ class InttestsScopeTest extends DokuWikiTest {
$this->assertFalse($this->triggered, 'trigger');
}
-
}
diff --git a/_test/tests/test/scope.test.php b/_test/tests/test/scope.test.php
index 9341ecef8..8c4ad9cf8 100644
--- a/_test/tests/test/scope.test.php
+++ b/_test/tests/test/scope.test.php
@@ -4,46 +4,46 @@
* @group integration
*/
class InttestsResetTest extends DokuWikiTest {
- /**
- * It should be possible to have two test cases within one test class.
- */
- function testFirstRun() {
- $request = new TestRequest();
- $response = $request->execute();
- $this->assertTrue(
- strpos($response->getContent(), 'DokuWiki') >= 0,
- 'DokuWiki was not a word in the output'
- );
- }
+ /**
+ * It should be possible to have two test cases within one test class.
+ */
+ function testFirstRun() {
+ $request = new TestRequest();
+ $response = $request->execute();
+ $this->assertTrue(
+ strpos($response->getContent(), 'DokuWiki') >= 0,
+ 'DokuWiki was not a word in the output'
+ );
+ }
- /**
- * @depends testFirstRun
- */
- function testSecondRun() {
- $request = new TestRequest();
- $response = $request->execute();
- $this->assertTrue(
- strpos($response->getContent(), 'DokuWiki') >= 0,
- 'DokuWiki was not a word in the output'
- );
- }
+ /**
+ * @depends testFirstRun
+ */
+ function testSecondRun() {
+ $request = new TestRequest();
+ $response = $request->execute();
+ $this->assertTrue(
+ strpos($response->getContent(), 'DokuWiki') >= 0,
+ 'DokuWiki was not a word in the output'
+ );
+ }
- /**
- * two requests within the same test case should be possible
- */
- function testMultipleRequests() {
- $request = new TestRequest();
- $response = $request->execute();
- $this->assertTrue(
- strpos($response->getContent(), 'DokuWiki') >= 0,
- 'DokuWiki was not a word in the output'
- );
+ /**
+ * two requests within the same test case should be possible
+ */
+ function testMultipleRequests() {
+ $request = new TestRequest();
+ $response = $request->execute();
+ $this->assertTrue(
+ strpos($response->getContent(), 'DokuWiki') >= 0,
+ 'DokuWiki was not a word in the output'
+ );
- $request = new TestRequest();
- $response = $request->execute();
- $this->assertTrue(
- strpos($response->getContent(), 'DokuWiki') >= 0,
- 'DokuWiki was not a word in the output'
- );
- }
+ $request = new TestRequest();
+ $response = $request->execute();
+ $this->assertTrue(
+ strpos($response->getContent(), 'DokuWiki') >= 0,
+ 'DokuWiki was not a word in the output'
+ );
+ }
}