public function shouldAllowSetApi() { $expectedApi = $this->createAuthorizeNetAIMMock(); $action = new CaptureAction(); $action->setApi($expectedApi); $this->assertAttributeSame($expectedApi, 'api', $action); }