From 0c90b7f5ed5ec0a507426afe027623482cc1ed48 Mon Sep 17 00:00:00 2001 From: Jaap Jansma Date: Wed, 23 Oct 2019 13:22:00 +0200 Subject: [PATCH] updated test --- tests/phpunit/api/v3/AttachmentTest.php | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/tests/phpunit/api/v3/AttachmentTest.php b/tests/phpunit/api/v3/AttachmentTest.php index 4d9833829c..346debc655 100644 --- a/tests/phpunit/api/v3/AttachmentTest.php +++ b/tests/phpunit/api/v3/AttachmentTest.php @@ -100,6 +100,16 @@ class api_v3_AttachmentTest extends CiviUnitTestCase { ], 'This comes from a file', ]; + $cases[] = [ + 'CRM_Core_DAO_Domain', + [ + 'name' => self::getFilePrefix() . 'exampleFromContent.txt', + 'mime_type' => 'text/plain', + 'description' => 'My test description', + 'content' => 'My test content', + ], + 'My test content', + ]; return $cases; } @@ -154,17 +164,6 @@ class api_v3_AttachmentTest extends CiviUnitTestCase { ], "/Malformed name/", ]; - $cases[] = [ - 'CRM_Core_DAO_Domain', - [ - 'name' => self::getFilePrefix() . 'exampleFromContent.txt', - 'mime_type' => 'text/plain', - 'description' => 'My test description', - 'content' => 'My test content', - 'check_permissions' => 1, - ], - "/Unrecognized target entity/", - ]; return $cases; } -- 2.25.1