diff --git a/.gitignore b/.gitignore index c8459617..ddb5614c 100644 --- a/.gitignore +++ b/.gitignore @@ -34,4 +34,3 @@ tests/tmp # resources data/ -integrator.lock diff --git a/tests/SprykerSdkTest/Integrator/IntegratorLock/IntegratorLockTest.php b/tests/SprykerSdkTest/Integrator/IntegratorLock/IntegratorLockTest.php index e4c8036a..03207d0d 100644 --- a/tests/SprykerSdkTest/Integrator/IntegratorLock/IntegratorLockTest.php +++ b/tests/SprykerSdkTest/Integrator/IntegratorLock/IntegratorLockTest.php @@ -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 */ @@ -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; }