Stabilize modular school API scaffold
This commit is contained in:
@@ -10,7 +10,8 @@ final class ScannerDelegationTest extends TestCase
|
||||
{
|
||||
public function test_scanner_route_file_exists_for_phase_four_slice(): void
|
||||
{
|
||||
$routeFile = dirname(__DIR__, 3).'/routes/attendance_phase4.php';
|
||||
$routeFile = dirname(__DIR__, 4).'/routes/attendance_phase4.php';
|
||||
|
||||
$this->assertFileExists($routeFile);
|
||||
$this->assertStringContainsString('attendance.scan.process', file_get_contents($routeFile));
|
||||
}
|
||||
|
||||
@@ -10,7 +10,12 @@ final class PaymentFileRouteTest extends TestCase
|
||||
{
|
||||
public function test_phase3_route_documents_payment_id_based_file_access(): void
|
||||
{
|
||||
$routes = file_get_contents(__DIR__ . '/../../../routes/finance_phase3.php');
|
||||
$routeFile = dirname(__DIR__, 4).'/routes/finance_phase3.php';
|
||||
|
||||
$this->assertFileExists($routeFile);
|
||||
|
||||
$routes = file_get_contents($routeFile);
|
||||
|
||||
$this->assertStringContainsString('payments/{payment}/file', $routes);
|
||||
$this->assertStringContainsString('school.context', $routes);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
@@ -6,7 +8,8 @@ final class ReportingPhase7ScaffoldTest extends TestCase
|
||||
{
|
||||
public function test_reporting_phase_7_scaffold_exists(): void
|
||||
{
|
||||
$root = dirname(__DIR__, 3);
|
||||
$root = dirname(__DIR__, 4);
|
||||
|
||||
$this->assertFileExists($root.'/app/Domain/SchoolCore/Reporting/Contracts/ReportRunnerContract.php');
|
||||
$this->assertFileExists($root.'/app/Providers/SchoolCoreReportingServiceProvider.php');
|
||||
$this->assertFileExists($root.'/app/Domain/IslamicSundaySchool/Reporting/Providers/IslamicSundaySchoolReportingServiceProvider.php');
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Feature\SchoolCore\Students;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
final class StudentLifecycleDelegationTest extends TestCase { public function test_phase5_routes_file_exists(): void { $this->assertFileExists(dirname(__DIR__,3).'/routes/student_lifecycle_phase5.php'); } }
|
||||
|
||||
final class StudentLifecycleDelegationTest extends TestCase
|
||||
{
|
||||
public function test_phase5_routes_file_exists(): void
|
||||
{
|
||||
$routeFile = dirname(__DIR__, 4).'/routes/student_lifecycle_phase5.php';
|
||||
|
||||
$this->assertFileExists($routeFile);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Tests;
|
||||
|
||||
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
|
||||
|
||||
abstract class TestCase extends BaseTestCase
|
||||
{
|
||||
//
|
||||
}
|
||||
@@ -8,7 +8,7 @@ use App\Domain\SchoolCore\Context\SchoolContext;
|
||||
use App\Domain\SchoolCore\Context\SchoolContextException;
|
||||
use App\Domain\SchoolCore\Context\SchoolContextValidator;
|
||||
use Illuminate\Contracts\Auth\Authenticatable;
|
||||
use Orchestra\Testbench\TestCase;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class SchoolContextValidatorTest extends TestCase
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user