added request format test.
This commit is contained in:
parent
c0c103a6d6
commit
560b1362a1
|
@ -31,6 +31,12 @@ public function test_request_method_returns_request_method_from_server_array()
|
|||
$this->assertEquals('PUT', Laravel\Request::method());
|
||||
}
|
||||
|
||||
public function test_format_method_returns_extension()
|
||||
{
|
||||
$this->assertEquals('html', Laravel\Request::format('user'));
|
||||
$this->assertEquals('json', Laravel\Request::format('user.json'));
|
||||
}
|
||||
|
||||
public function test_server_method_returns_from_the_server_array()
|
||||
{
|
||||
$_SERVER = array('TEST' => 'something', 'USER' => array('NAME' => 'taylor'));
|
||||
|
|
Loading…
Reference in New Issue