Skip to content

Commit

Permalink
SDK-5285 test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyspryker committed Dec 26, 2023
1 parent cc6c8b1 commit 3f81bff
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,24 @@ public function testExecuteSuccess(): void
$normalizer->normalize($fileStorage->flush());
}

/**
* @return void
*/
public function testExecuteSuccessWhenProjectDirIsSet(): void
{
// Arrange
$codesnifferCommandExecutor = $this->createCodeSnifferCommandExecutorMock();
$configMock = $this->createMock(IntegratorConfig::class);
$configMock->method('getProjectRootDirectory')->willReturn('projectRoot');
$normalizer = new CodeSniffStyleFileNormalizer($configMock, $codesnifferCommandExecutor);

$fileStorage = new FileStorage();
$fileStorage->addFile('someClass.php');

// Act
$normalizer->normalize($fileStorage->flush());
}

/**
* @return void
*/
Expand Down

0 comments on commit 3f81bff

Please sign in to comment.