It would be a good thing if each module in the Salesforce API had tests written using SimpleTest. There are some good pointers in the Examples project and there is documentation as well.

CommentFileSizeAuthor
#4 salesforce_config.test2.09 KBmtbosworth

Comments

EvanDonovan’s picture

Issue tags: +7.x-2.x

Would it be possible to do this though? Is there a reference implementation of Salesforce that could be used to connect?

EvanDonovan’s picture

Perhaps this could work if someone "donated" a developer org that could be used for the tests.

The dataset would have to remain the same always though.

mtbosworth’s picture

I am working on salesforce tests for my company and we have our own Salesforce sandbox that I plan on using. I am interested seeing code from anyone has simply setup a Salesforce connection in SimpleTest. I am close using the drupalPost function to fill out the Salesforce Admin settings page and then running an api call to check. I am willing to share what I come up with.

Thanks in advance.

mtbosworth’s picture

StatusFileSize
new2.09 KB

I've attached a simpletest php class that establishes and tests a salesforce connection. You should be able to build on from here.

kostajh’s picture

Status: Active » Needs review
kostajh’s picture

Status: Needs review » Closed (won't fix)