Skip to content

Commit 699a985

Browse files
committed
Add options method to IntegrationTestCase
1 parent 668c087 commit 699a985

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/TestSuite/IntegrationTestCase.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,21 @@ public function delete($url)
434434
$this->_sendRequest($url, 'DELETE');
435435
}
436436

437+
/**
438+
* Performs an OPTION request using the current request data.
439+
*
440+
* The response of the dispatched request will be stored as
441+
* a property. You can use various assert methods to check the
442+
* response.
443+
*
444+
* @param string|array $url The URL to request.
445+
* @return void
446+
*/
447+
public function options($url)
448+
{
449+
$this->_sendRequest($url, 'OPTIONS');
450+
}
451+
437452
/**
438453
* Creates and send the request into a Dispatcher instance.
439454
*

0 commit comments

Comments
 (0)