PHP Class WellCommerce\Bundle\ApiBundle\Tests\Controller\ApiControllerTest

Author: Adam Piotrowski ([email protected])
Inheritance: extends WellCommerce\Bundle\CoreBundle\Test\AbstractTestCase
Show file Open project: wellcommerce/wellcommerce

Protected Properties

Property Type Description
$apiKey

Public Methods

Method Description
testGetAction ( )
testListAction ( )

Protected Methods

Method Description
generateUrl ( string $routeName, array $params = [], boolean | false $absolute = false ) : string Returns an URL generated for route
getApiKey ( )
getRequestHandlers ( ) : WellCommerce\Bundle\ApiBundle\Request\RequestHandlerInterface[]
runRequestHandlerGetTest ( WellCommerce\Bundle\ApiBundle\Request\RequestHandlerInterface $requestHandler )
runRequestHandlerIndexTest ( WellCommerce\Bundle\ApiBundle\Request\RequestHandlerInterface $requestHandler )

Method Details

generateUrl() protected method

Returns an URL generated for route
protected generateUrl ( string $routeName, array $params = [], boolean | false $absolute = false ) : string
$routeName string
$params array
$absolute boolean | false
return string

getApiKey() protected method

protected getApiKey ( )

getRequestHandlers() protected method

protected getRequestHandlers ( ) : WellCommerce\Bundle\ApiBundle\Request\RequestHandlerInterface[]
return WellCommerce\Bundle\ApiBundle\Request\RequestHandlerInterface[]

runRequestHandlerGetTest() protected method

protected runRequestHandlerGetTest ( WellCommerce\Bundle\ApiBundle\Request\RequestHandlerInterface $requestHandler )
$requestHandler WellCommerce\Bundle\ApiBundle\Request\RequestHandlerInterface

runRequestHandlerIndexTest() protected method

protected runRequestHandlerIndexTest ( WellCommerce\Bundle\ApiBundle\Request\RequestHandlerInterface $requestHandler )
$requestHandler WellCommerce\Bundle\ApiBundle\Request\RequestHandlerInterface

testGetAction() public method

public testGetAction ( )

testListAction() public method

public testListAction ( )

Property Details

$apiKey protected property

protected $apiKey