Skip to content

Commit a0bbb02

Browse files
authored
Merge pull request #8493 from kenjis/docs-testing/controllers
docs: fix sample code in testing/controllers
2 parents 3ca481c + 1cd91a9 commit a0bbb02

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

user_guide_src/source/testing/controllers/001.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
namespace CodeIgniter;
3+
namespace App\Controllers;
44

55
use CodeIgniter\Test\CIUnitTestCase;
66
use CodeIgniter\Test\ControllerTestTrait;
77
use CodeIgniter\Test\DatabaseTestTrait;
88

9-
class TestControllerA extends CIUnitTestCase
9+
class FooControllerTest extends CIUnitTestCase
1010
{
1111
use ControllerTestTrait;
1212
use DatabaseTestTrait;

user_guide_src/source/testing/controllers/002.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<?php
22

3-
namespace CodeIgniter;
3+
namespace App\Controllers;
44

55
use CodeIgniter\Test\CIUnitTestCase;
66
use CodeIgniter\Test\ControllerTestTrait;
77
use CodeIgniter\Test\DatabaseTestTrait;
88

9-
class TestControllerA extends CIUnitTestCase
9+
class ForumControllerTest extends CIUnitTestCase
1010
{
1111
use ControllerTestTrait;
1212
use DatabaseTestTrait;
1313

1414
public function testShowCategories()
1515
{
1616
$result = $this->withURI('http://example.com/categories')
17-
->controller(\App\Controllers\ForumController::class)
17+
->controller(ForumController::class)
1818
->execute('showCategories');
1919

2020
$this->assertTrue($result->isOK());
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace CodeIgniter;
3+
namespace App\Filters;
44

55
use CodeIgniter\Test\CIUnitTestCase;
66
use CodeIgniter\Test\FilterTestTrait;
77

8-
class FilterTestCase extends CIUnitTestCase
8+
class FooFilterTest extends CIUnitTestCase
99
{
1010
use FilterTestTrait;
1111
}

user_guide_src/source/testing/controllers/012.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace CodeIgniter;
3+
namespace App\Filters;
44

55
use CodeIgniter\Test\CIUnitTestCase;
66
use CodeIgniter\Test\FilterTestTrait;
77

8-
final class FilterTestCase extends CIUnitTestCase
8+
final class FooFilterTest extends CIUnitTestCase
99
{
1010
use FilterTestTrait;
1111

user_guide_src/source/testing/controllers/014.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace CodeIgniter;
3+
namespace App\Filters;
44

55
use CodeIgniter\Test\CIUnitTestCase;
66
use CodeIgniter\Test\FilterTestTrait;
77

8-
final class FilterTestCase extends CIUnitTestCase
8+
final class FooFilterTest extends CIUnitTestCase
99
{
1010
use FilterTestTrait;
1111

0 commit comments

Comments
 (0)