PHP Classes

File: tests/api/Delete/NotExistingArticleCept.php

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

Contents

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

$I->sendDELETE('/articles/'.mt_rand(9999, 99999));
$I->seeResponseCodeIs(404);
$I->canSeeResponseEquals('');

For more information send a message to info at phpclasses dot org.