PHP Classes

File: tests/api/Delete/ArticleWithBadIdFormatCept.php

Recommend this page to a friend!
  Classes of Gjero Krsteski   PHP Nuclear Reactor   tests/api/Delete/ArticleWithBadIdFormatCept.php   Download  
File: tests/api/Delete/ArticleWithBadIdFormatCept.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/Delete/ArticleWithBadIdFormatCept.php
Date: 4 years ago
Size: 198 bytes
 

Contents

Class file image Download
<?php
$I
= new ApiTester($scenario);
$I->wantTo('delete article with invalid id via API');

$I->sendDELETE('/articles/bad-article-id-here');
$I->seeResponseCodeIs(400);
$I->canSeeResponseEquals('');