Skip to content

Commit d74967f

Browse files
committed
test: fix incorrect tests
1 parent 35f9a1d commit d74967f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/system/RESTful/ResourceControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private function createCodeigniter(): void
6666

6767
// Inject mock router.
6868
$this->routes = Services::routes();
69-
$this->routes->resource('work', ['controller' => Worker::class]);
69+
$this->routes->resource('work', ['controller' => '\\' . Worker::class]);
7070
Services::injectMock('routes', $this->routes);
7171

7272
$config = new App();

tests/system/RESTful/ResourcePresenterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private function createCodeigniter(): void
6060

6161
// Inject mock router.
6262
$this->routes = Services::routes();
63-
$this->routes->presenter('work', ['controller' => Worker2::class]);
63+
$this->routes->presenter('work', ['controller' => '\\' . Worker2::class]);
6464
Services::injectMock('routes', $this->routes);
6565

6666
$config = new App();

0 commit comments

Comments
 (0)