Skip to content

Commit

Permalink
Solved issue ecs.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Jan 20, 2024
1 parent 9c6b6d9 commit db6cf4c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
4 changes: 1 addition & 3 deletions tests/Event/GetAssetsEventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ final class GetAssetsEventTest extends SolveEvent
{
private array $assets = ['@composer-asset/foo--bar' => 'file:./vendor/foxy/composer-asset/foo/bar'];

/**
* @return GetAssetsEvent
*/

public function getEvent(): GetAssetsEvent
{
return new GetAssetsEvent($this->assetDir, $this->packages, $this->assets);
Expand Down
6 changes: 1 addition & 5 deletions tests/Fallback/AssetFallbackTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,14 @@
*/
final class AssetFallbackTest extends \PHPUnit\Framework\TestCase
{
protected AssetFallback|null $assetFallback = null;
private Config|null $config = null;
private IOInterface|MockObject|null $io = null;
private Filesystem|MockObject|null $fs = null;
private \Symfony\Component\Filesystem\Filesystem|null $sfs = null;
private string|null $oldCwd = '';
private string|null $cwd = '';

/**
* @var AssetFallback
*/
protected $assetFallback;

protected function setUp(): void
{
parent::setUp();
Expand Down
2 changes: 1 addition & 1 deletion tests/Json/JsonFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,6 @@ public function testWriteWithExistingFile(): void
$this->assertFileExists($filename);
$content = file_get_contents($filename);

$this->assertSame($expected, $content);
Assert::equalsWithoutLE($expected, $content);
}
}
1 change: 0 additions & 1 deletion tests/Util/AssetUtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public function testGetName(): void

public function testGetPathWithoutRequiredFoxy(): void
{

$installationManager = $this->createMock(InstallationManager::class);

$installationManager->expects($this->never())->method('getInstallPath');
Expand Down

0 comments on commit db6cf4c

Please sign in to comment.