api_v3_MessageTemplatesTest - Fix regression
authorTim Otten <totten@civicrm.org>
Wed, 28 Aug 2013 01:00:16 +0000 (18:00 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 28 Aug 2013 01:00:16 +0000 (18:00 -0700)
Note that the test called createTestObject() (once in setup(), once in the
testGet()) but expected only one object to get created.  This doesn't make
sense to me -- sounds more like a bug.

tests/phpunit/api/v3/MessageTemplatesTest.php

index 35870bc01af279013d1f12b1ec4d568ecb83a070..7dc726e2a4a85c44dc75c684aff48efffe0039e8 100644 (file)
@@ -73,7 +73,6 @@ class api_v3_MessageTemplatesTest extends CiviUnitTestCase {
    *
    */
   public function testGet() {
-    $this->createTestEntity();
     $result = $this->callAPIAndDocument('MessageTemplates', 'get', $this->params, __FUNCTION__, __FILE__);
     $this->assertEquals(1, $result['count'], 'In line ' . __LINE__);
     $this->assertNotNull($result['values'][$result['id']]['id'], 'In line ' . __LINE__);