diff --git a/tests/phpunit/api/v3/TwingleProject/SyncTest.php b/tests/phpunit/api/v3/TwingleProject/SyncTest.php new file mode 100644 index 0000000..fbedf93 --- /dev/null +++ b/tests/phpunit/api/v3/TwingleProject/SyncTest.php @@ -0,0 +1,53 @@ +installMe(__DIR__) + ->apply(); + } + + /** + * The setup() method is executed before the test is executed (optional). + */ + public function setUp() { + parent::setUp(); + } + + /** + * The tearDown() method is executed after the test was executed (optional) + * This can be used for cleanup. + */ + public function tearDown() { + parent::tearDown(); + } + + /** + * Simple example test case. + * + * Note how the function name begins with the word "test". + */ + public function testApiExample() { + $result = civicrm_api3('TwingleProject', 'Sync', array('magicword' => 'sesame')); + $this->assertEquals('Twelve', $result['values'][12]['name']); + } + +}