Merged in bugfix/PMC-1365 (pull request #7124)

PMC-1365

Approved-by: Paula Quispe <paula.quispe@processmaker.com>
This commit is contained in:
Julio Cesar Laura Avendaño
2019-11-13 14:25:28 +00:00
committed by Paula Quispe

View File

@@ -0,0 +1,28 @@
<?php
use Tests\TestCase;
class PmTablesTest extends TestCase
{
/**
* Check if the "removePmtPropelFolder" is working correctly
*
* @covers PmTable::removePmtPropelFolder()
*
* @test
*/
public function it_should_check_remove_pmt_propel_folder()
{
// Define the folder path
$pmtPropelFolderPath = PATH_DB . config('system.workspace') . PATH_SEP . 'pmt-propel';
// Create the folder
G::mk_dir($pmtPropelFolderPath);
// Remove the "pmt-propel" folder
PmTable::removePmtPropelFolder();
// Assert that the folder was deleted correctly
$this->assertFalse(is_dir($pmtPropelFolderPath));
}
}