Skip to content

Commit

Permalink
feat(ci): test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikel00per committed Nov 29, 2023
1 parent ad030c1 commit a111d77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/tests-multiples-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ jobs:
run: composer validate

- name: Run test suite
run: composer test
run:
echo $(pwd)
| composer test
7 changes: 4 additions & 3 deletions tests/Units/DependencyInjection/ContainerBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,22 @@
final class ContainerBuilderTest extends TestCase
{
private ContainerBuilder $containerBuilder;
private string $rootPath = '/code';
private string $rootNamespace = 'Tests\\Shared\\Infrastructure\\';
private string $containerCachePath = '/code/tmp/cache/container';
private string $containerCacheFileName = 'CompiledContainer.php';
private string $containerCachePath;
private string $containerCacheFilePath;

public function setUp(): void
{
$rootPath = dirname(__DIR__, 2);
$this->containerCachePath = "$rootPath/tmp/cache/container";
$this->containerCacheFilePath = "$this->containerCachePath/$this->containerCacheFileName";

$this->removeContainerCache();

$this->containerBuilder = ContainerBuilder::create()
->addRootNamespace($this->rootNamespace)
->addRootPath($this->rootPath);
->addRootPath($rootPath);
}

public function tearDown(): void
Expand Down

0 comments on commit a111d77

Please sign in to comment.