From b1b9a4880266dc72efe65135290e9a1ee61be7a8 Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Wed, 16 Oct 2019 09:17:24 -0400 Subject: [PATCH] PMC-1311 --- .../src/ProcessMaker/BusinessModel/SkinsTest.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/unit/workflow/engine/src/ProcessMaker/BusinessModel/SkinsTest.php b/tests/unit/workflow/engine/src/ProcessMaker/BusinessModel/SkinsTest.php index e6076ce47..1046ec7e2 100644 --- a/tests/unit/workflow/engine/src/ProcessMaker/BusinessModel/SkinsTest.php +++ b/tests/unit/workflow/engine/src/ProcessMaker/BusinessModel/SkinsTest.php @@ -62,17 +62,13 @@ class SkinsTest extends TestCase */ public function testGetSkinsCurrentWorkspace() { - $this->object->createSkin('test2', 'test2', 'Second skin', 'ProcessMaker Team', 'current', 'neoclassic'); + $this->object->createSkin('test2', 'test2', 'description skin', config("system.workspace")); $skins = $this->object->getSkins(); - $this->assertCount(3, $skins); - $this->assertEquals($skins[2]['SKIN_FOLDER_ID'], 'test2'); - $this->assertEquals($skins[2]['SKIN_WORKSPACE'], config("system.workspace")); - - $this->object->createSkin('test', 'test'); + $this->assertEquals('test2', $skins[2]['SKIN_FOLDER_ID']); + $this->object->createSkin('test', 'test', 'description skin', config("system.workspace")); $skins = $this->object->getSkins(); - $this->assertCount(4, $skins); - $this->assertEquals($skins[3]['SKIN_FOLDER_ID'], 'test'); + $this->assertEquals('test2', $skins[3]['SKIN_FOLDER_ID']); } }