@@ -135,12 +135,6 @@ private function checkScriptRefs()
135135 */
136136 public function testExportImportProcess ()
137137 {
138-
139-
140- $ this ->markTestSkipped ();
141-
142-
143-
144138 // Create an admin user
145139 $ adminUser = factory (User::class)->create ([
146140 'username ' => 'admin ' ,
@@ -193,7 +187,7 @@ public function testExportImportProcess()
193187 // Test to ensure we can download the exported file
194188 $ response = $ this ->webCall ('GET ' , $ response ->json ('url ' ));
195189 $ response ->assertStatus (200 );
196- $ response ->assertHeader ('content-disposition ' , 'attachment; filename=leave_absence_request .json ' );
190+ $ response ->assertHeader ('content-disposition ' , 'attachment; filename="Leave Absence Request .json" ' );
197191
198192 // Get our file contents (we have to do it this way because of
199193 // Symfony's weird response API)
@@ -235,6 +229,16 @@ public function testExportImportProcess()
235229
236230 $ this ->assertCount (2 , $ screen ->category ->refresh ()->screens );
237231 $ this ->assertCount (2 , $ secondScreenCategory ->refresh ()->screens );
232+
233+ // Assert that assignments are preserved, except for user and group assignments
234+ $ process = Process::where ('name ' , 'Leave Absence Request 2 ' )->first ();
235+ $ definitions = $ process ->getDefinitions ();
236+ $ ns = WorkflowServiceProvider::PROCESS_MAKER_NS ;
237+ $ this ->assertEquals ("" , $ definitions ->findElementById ('node_5 ' )->getAttributeNS ($ ns , 'assignment ' ));
238+ $ this ->assertEquals ("" , $ definitions ->findElementById ('node_5 ' )->getAttributeNS ($ ns , 'assignedUsers ' ));
239+
240+ $ this ->assertEquals ("self_service " , $ definitions ->findElementById ('node_6 ' )->getAttributeNS ($ ns , 'assignment ' ));
241+ $ this ->assertEquals ("" , $ definitions ->findElementById ('node_6 ' )->getAttributeNS ($ ns , 'assignedGroups ' ));
238242 }
239243
240244 /**
0 commit comments