PHP Classes

File: tests/api/Create/ArticleWithBadParamsValuesCept.php

Recommend this page to a friend!
  Classes of Gjero Krsteski   PHP Nuclear Reactor   tests/api/Create/ArticleWithBadParamsValuesCept.php   Download  
File: tests/api/Create/ArticleWithBadParamsValuesCept.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Nuclear Reactor
Asynchronous RESTful API using ReactPHP and PIMF
Author: By
Last change: Update of tests/api/Create/ArticleWithBadParamsValuesCept.php
Date: 4 years ago
Size: 284 bytes
 

Contents

Class file image Download
<?php
$I
= new ApiTester($scenario);
$I->wantTo('create a article via API using bad parameter values');
$I->haveHttpHeader('Content-Type', 'application/x-www-form-urlencoded');
$I->sendPOST('/articles', ['title' => '', 'content' => ['test'=>'content']]);
$I->seeResponseCodeIs(400);