public function testMissingProviderParam() { $this->_setProvidersOntoSut(); $this->_mockRequestParams->shouldReceive('hasParam')->once()->with('code')->andReturn(true); $this->_mockRequestParams->shouldReceive('hasParam')->once()->with('csrf_token')->andReturn(true); $this->_mockRequestParams->shouldReceive('hasParam')->once()->with('provider')->andReturn(false); $this->_expectBail('Missing provider parameter.'); $this->_sut->initiate(); }
public function onAction_load_admin_page_tubepress_oauth2(tubepress_api_event_EventInterface $event) { $this->_oauth2Callback->initiate(); exit; }