Created
November 29, 2011 09:42
-
-
Save jimmydivvy/1404195 to your computer and use it in GitHub Desktop.
Test Create Sales Order
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class TestCreateSalesOrder { | |
| private static testmethod void testCreateSalesOrder(){ | |
| Contact c = new Contact(LastName='Test'); | |
| insert c; | |
| biz3__Order__c order = new biz3__Order__c( Name='Test', biz3__Contact__c = c.Id ); | |
| insert order; | |
| biz3__Sales_Order__c[] sales = [SELECT Id FROM biz3__Sales_Order__c WHERE biz3__Order__c = :order.Id]; | |
| System.assertEquals( 1, sales.size() ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment