VersionedTestSessionExtension deprecated
class VersionedTestSessionExtension extends VersionedStateExtension
deprecated 2.2..3.0 Use ?stage= querystring arguments instead of session
Decorates TestSession object to update get / post requests with versioned querystring arguments.
Session vars assigned by FunctionalTest::useDraftSite are respected here.
Properties
TestSession | $owner |
Methods
Called when this extension is added to a particular class
Temporarily modify the owner. The original owner is ensured to be restored
Clear the current owner, and restore extension to the state prior to the last setOwner()
Helper method to strip eval'ed arguments from a string that's passed to {@link DataObject::$extensions} or {@link Object::add_extension()}.
Invoke extension point. This will prefer explicit extend
prefixed
methods.
Update link
Decorate link prior to http get request
Decorate link prior to http post request
Details
in Extension at line 39
__construct()
in Extension at line 50
static
add_to_class(string $class, string $extensionClass, mixed $args = null)
Called when this extension is added to a particular class
in Extension at line 60
setOwner(object $owner)
Set the owner of this extension.
in Extension at line 74
mixed
withOwner(mixed $owner, callable $callback, array $args = [])
Temporarily modify the owner. The original owner is ensured to be restored
in Extension at line 87
clearOwner()
Clear the current owner, and restore extension to the state prior to the last setOwner()
in Extension at line 100
Object
getOwner()
Returns the owner of this extension.
in Extension at line 113
static string
get_classname_without_arguments(string $extensionStr)
Helper method to strip eval'ed arguments from a string that's passed to {@link DataObject::$extensions} or {@link Object::add_extension()}.
in Extension at line 128
mixed
invokeExtension(object $owner, string $method, array $arguments)
Invoke extension point. This will prefer explicit extend
prefixed
methods.
at line 24
updateLink(string $url)
Update link
at line 61
updateGetURL(string $link)
Decorate link prior to http get request
at line 71
updatePostURL(string $link)
Decorate link prior to http post request