create(); DB::commit(); $result = PMFGetProcessUidByName($table->PRO_TITLE); $this->assertNotEmpty($result); // When a process was defined in the session $result = PMFGetProcessUidByName(''); $this->assertNotEmpty($result); // When does not defined the session $_SESSION['PROCESS'] = ''; $result = PMFGetProcessUidByName(''); $this->assertEmpty($result); } }