Skip to content

Commit

Permalink
wip: tweak test layout
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Jan 14, 2025
1 parent 01947be commit 165d0b5
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions test/phpunit/Migration/EntityDetectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
namespace Gt\Orm\Test\Migration;

use Gt\Orm\Migration\EntityDetector;
use Gt\Orm\Test\TestProjectRoot\SimpleEntitiesAndNonEntities\NestedNamespace\OrderEntity;
use Gt\Orm\Test\TestProjectRoot\SimpleEntitiesAndNonEntities\NotAnEntity;
use Gt\Orm\Test\TestProjectRoot\SimpleEntitiesAndNonEntities\PersonEntity;
use Gt\Orm\Test\TestProject\EntityDetectorTest\SimpleEntitiesAndNonEntities\NestedNamespace\OrderEntity;
use Gt\Orm\Test\TestProject\EntityDetectorTest\SimpleEntitiesAndNonEntities\NotAnEntity;
use Gt\Orm\Test\TestProject\EntityDetectorTest\SimpleEntitiesAndNonEntities\PersonEntity;
use PHPUnit\Framework\TestCase;

class EntityDetectorTest extends TestCase {
Expand All @@ -16,7 +16,7 @@ public function testGetEntityClassList_noFiles():void {
}

public function testGetEntityClassList():void {
$dir = "test/phpunit/TestProject/01-EntityDetectorTest";
$dir = "test/phpunit/TestProject/EntityDetectorTest";
$sut = new EntityDetector();
$detected = $sut->getEntityClassList($dir);
self::assertCount(2, $detected);
Expand Down
2 changes: 1 addition & 1 deletion test/phpunit/Migration/SchemaGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use DateTime;
use Gt\Orm\Migration\SchemaGenerator;
use Gt\Orm\Test\TestProjectRoot\SimpleEntitiesAndNonEntities\PersonEntity;
use Gt\Orm\Test\TestProject\EntityDetectorTest\SimpleEntitiesAndNonEntities\PersonEntity;
use PHPUnit\Framework\TestCase;

class SchemaGeneratorTest extends TestCase {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
namespace Gt\Orm\Test\TestProjectRoot\SimpleEntitiesAndNonEntities\NestedNamespace;
namespace Gt\Orm\Test\TestProject\EntityDetectorTest\SimpleEntitiesAndNonEntities\NestedNamespace;

use DateTime;
use Gt\Orm\Entity;
use Gt\Orm\Test\TestProjectRoot\SimpleEntitiesAndNonEntities\PersonEntity;
use Gt\Orm\Test\TestProject\EntityDetectorTest\SimpleEntitiesAndNonEntities\PersonEntity;

readonly class OrderEntity extends Entity {
public function __construct(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
namespace Gt\Orm\Test\TestProject\EntityDetectorTest\SimpleEntitiesAndNonEntities;

readonly class NotAnEntity {

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Gt\Orm\Test\TestProjectRoot\SimpleEntitiesAndNonEntities;
namespace Gt\Orm\Test\TestProject\EntityDetectorTest\SimpleEntitiesAndNonEntities;

use DateTime;
use Gt\Orm\Entity;
Expand Down

0 comments on commit 165d0b5

Please sign in to comment.