Merge branch 'ent-8181-umc-traer-cambios' into 'develop'
UM replicated See merge request artica/pandorafms!4506
This commit is contained in:
commit
dfede4de78
|
@ -1276,6 +1276,7 @@ class Client
|
|||
$file = trim(str_replace("\0", '', $this->productPath.'/'.$file));
|
||||
if (file_exists($file) === true
|
||||
&& is_file($delete_files_txt) === true
|
||||
&& is_dir($file) === false
|
||||
) {
|
||||
unlink($file);
|
||||
$processed[$file] = 'removed';
|
||||
|
|
|
@ -183,7 +183,7 @@ class ClientTest extends \PHPUnit\Framework\TestCase
|
|||
try {
|
||||
$this->conf = new \Config('client/conf/test.ini');
|
||||
} catch (\Exception $e) {
|
||||
$this->fail($e->xdebug_message);
|
||||
$this->fail($e->getMessage());
|
||||
}
|
||||
|
||||
// Verify endpoint has all needed stuff, like licenses and OUM packages.
|
||||
|
@ -510,7 +510,12 @@ class ClientTest extends \PHPUnit\Framework\TestCase
|
|||
|
||||
$this->assertEquals(0, $umc_enterprise->getMR());
|
||||
|
||||
$umc_enterprise->updateLastVersion();
|
||||
try {
|
||||
$umc_enterprise->updateLastVersion();
|
||||
} catch (\Exception $e) {
|
||||
echo $e->getTraceAsString();
|
||||
$this->fail('Failed while updating: '.$e->getMessage());
|
||||
}
|
||||
|
||||
$this->assertEquals(
|
||||
4,
|
||||
|
|
Loading…
Reference in New Issue