Welcome Guest, Not a member yet? Register   Sign In
Problems with Unit Testing
#1

(This post was last modified: 04-17-2021, 03:07 AM by pilly100.)

Hello,

I want to make some unit tests but allways get an error:

CodeIgniter\Exceptions\PageNotFoundException: Controller or its method is not found: \App\Controllers\Tests::codeigniter

but I dont want to test the Tests Controller

PHP Code:
<?php

namespace App;

use 
CodeIgniter\Test\FeatureTestCase ;

class 
TestHome extends FeatureTestCase
{
    public function setUp(): void
    
{
        parent::setUp();
    }

    public function tearDown(): void
    
{
        parent::tearDown();
    }

    public function testIndex(){

        $this->get("/");
    }


Reply


Messages In This Thread
Problems with Unit Testing - by pilly100 - 04-16-2021, 05:54 PM
RE: Problems with Unit Testing - by pilly100 - 04-17-2021, 09:16 AM
RE: Problems with Unit Testing - by pilly100 - 04-19-2021, 02:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB