コード例 #1
0
<?php

$app = 'qubit';
include dirname(__FILE__) . '/../../../bootstrap/functional.php';
$browser = new QubitTestFunctional(new sfBrowser());
$browser->info('Information object without parent is 404')->get(QubitInformationObject::ROOT_ID . ';edit/isad')->with('request')->begin()->isParameter('module', 'sfIsadPlugin')->isParameter('action', 'edit')->end()->with('response')->begin()->isStatusCode(404)->end();
コード例 #2
0
<?php

$app = 'qubit';
include dirname(__FILE__) . '/../../../bootstrap/functional.php';
$browser = new QubitTestFunctional(new sfBrowser());
$browser->disableSecurity();
$browser->info('Actor without parent is 404')->get(QubitActor::ROOT_ID . ';actor/delete')->with('request')->begin()->isParameter('module', 'actor')->isParameter('action', 'delete')->end()->with('response')->begin()->isStatusCode(404)->end();
コード例 #3
0
<?php

$app = 'qubit';
include dirname(__FILE__) . '/../../../bootstrap/functional.php';
$browser = new QubitTestFunctional(new sfBrowser());
$browser->info('Information object without parent is 404')->get(QubitInformationObject::ROOT_ID . ';informationobject/delete')->with('request')->begin()->isParameter('module', 'informationobject')->isParameter('action', 'delete')->end()->with('response')->begin()->isStatusCode(404)->end();