Skip to content

Commit

Permalink
SDK-5690: Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
vol4onok committed Dec 14, 2023
1 parent 0bd3e8b commit 6ead796
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ tests/tmp

# resources
data/
integrator.lock
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@

class IntegratorLockTest extends BaseTestCase
{
/**
* @return void
*/
protected function setUp(): void
{
@unlink(sys_get_temp_dir() . DIRECTORY_SEPARATOR . IntegratorConfig::INTEGRATOR_LOCK);
@unlink(sys_get_temp_dir() . DIRECTORY_SEPARATOR . '.gitignore');
}

/**
* @return void
*/
Expand Down Expand Up @@ -130,6 +139,8 @@ private function mockIntegratorConfig(string $tmpIntegratorLockFilePath): Integr

$integratorConfigMock->method('getIntegratorLockFilePath')
->willReturn($tmpIntegratorLockFilePath);
$integratorConfigMock->method('getProjectRootDirectory')
->willReturn(sys_get_temp_dir() . DIRECTORY_SEPARATOR);

return $integratorConfigMock;
}
Expand Down

0 comments on commit 6ead796

Please sign in to comment.