Replaced "requestdata"
This commit is contained in:
parent
ab28fa32aa
commit
c9b14b260f
2 changed files with 10 additions and 59 deletions
|
@ -902,38 +902,6 @@ class ApiTest extends FixtureTest
|
|||
api_account_verify_credentials('json');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the requestdata() function.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testRequestdata()
|
||||
{
|
||||
self::assertNull(requestdata('variable_name'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the requestdata() function with a POST parameter.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testRequestdataWithPost()
|
||||
{
|
||||
$_POST['variable_name'] = 'variable_value';
|
||||
self::assertEquals('variable_value', requestdata('variable_name'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the requestdata() function with a GET parameter.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testRequestdataWithGet()
|
||||
{
|
||||
$_GET['variable_name'] = 'variable_value';
|
||||
self::assertEquals('variable_value', requestdata('variable_name'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_statuses_mediap() function.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue