summaryrefslogtreecommitdiff
path: root/tests/Unit/Http
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Http')
-rw-r--r--tests/Unit/Http/RequestTest.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/Unit/Http/RequestTest.php b/tests/Unit/Http/RequestTest.php
index 916aac35..11a8ed83 100644
--- a/tests/Unit/Http/RequestTest.php
+++ b/tests/Unit/Http/RequestTest.php
@@ -67,6 +67,24 @@ class RequestTest extends TestCase
}
/**
+ * @covers \Engelsystem\Http\Request::hasPostData
+ */
+ public function testHasPostData()
+ {
+ $request = new Request([
+ 'foo' => 'bar',
+ ], [
+ 'lorem' => 'ipsum',
+ ]);
+
+ $this->assertTrue($request->has('foo'));
+ $this->assertFalse($request->hasPostData('foo'));
+
+ $this->assertTrue($request->has('lorem'));
+ $this->assertTrue($request->hasPostData('lorem'));
+ }
+
+ /**
* @covers \Engelsystem\Http\Request::path
*/
public function testPath()