Skip to content

Commit 32e41e8

Browse files
committed
Add test for send method
1 parent 968ff58 commit 32e41e8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/unit/Codeception/Module/RestTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ public function testPut()
8787
$this->module->dontSeeResponseContainsJson(['name' => 'john']);
8888
}
8989

90+
public function testSend()
91+
{
92+
$this->module->send('POST','/rest/user/', ['name' => 'john']);
93+
$this->module->seeResponseContains('john');
94+
$this->module->seeResponseContainsJson(['name' => 'john']);
95+
}
96+
9097
public function testGrabDataFromResponseByJsonPath()
9198
{
9299
$this->module->sendGET('/rest/user/');

0 commit comments

Comments
 (0)