From 2f4afe70fa5c884eda9e27c98b550689c3c76644 Mon Sep 17 00:00:00 2001 From: Marc Michalsky forumZFD Date: Tue, 26 Jan 2021 14:52:15 +0100 Subject: [PATCH] add TwingleProject.sync test --- .../api/v3/TwingleProject/SyncTest.php | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 tests/phpunit/api/v3/TwingleProject/SyncTest.php 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']); + } + +}