Skip to content

Commit f3cc6ba

Browse files
committed
Move stubs to their own namespace
1 parent 84409b2 commit f3cc6ba

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

tests/ControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Illuminate\Session\Middleware\StartSession;
66
use Illuminate\Support\Facades\Route;
77
use Inertia\Controller;
8-
use Inertia\Tests\middleware\ExampleMiddleware;
8+
use Inertia\Tests\Stubs\ExampleMiddleware;
99

1010
class ControllerTest extends TestCase
1111
{

tests/MiddlewareTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Illuminate\Support\MessageBag;
1010
use Illuminate\Support\ViewErrorBag;
1111
use Inertia\Inertia;
12-
use Inertia\Tests\middleware\ExampleMiddleware;
12+
use Inertia\Tests\Stubs\ExampleMiddleware;
1313

1414
class MiddlewareTest extends TestCase
1515
{

tests/ResponseFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Illuminate\Support\Facades\Route;
88
use Inertia\Inertia;
99
use Inertia\ResponseFactory;
10-
use Inertia\Tests\middleware\ExampleMiddleware;
10+
use Inertia\Tests\Stubs\ExampleMiddleware;
1111

1212
class ResponseFactoryTest extends TestCase
1313
{

tests/middleware/ExampleMiddleware.php renamed to tests/Stubs/ExampleMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Inertia\Tests\middleware;
3+
namespace Inertia\Tests\Stubs;
44

55
use Inertia\Middleware;
66

File renamed without changes.

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ public function setUp(): void
1616
{
1717
parent::setUp();
1818

19-
View::addLocation(__DIR__.'/views');
19+
View::addLocation(__DIR__.'/stubs');
2020
}
2121
}

0 commit comments

Comments
 (0)