Welcome Guest, Not a member yet? Register   Sign In
Unit testing issue
#2

The actual code I'm running, if it helps:

PHP Code:
namespace App\Models;

use 
CodeIgniter\Test\CIDatabaseTestCase;
use 
CodeIgniter\Test\ControllerTester;

class 
GroupClassesTest extends CIDatabaseTestCase{
  use 
ControllerTester;
  public function setup():void{
    parent::setUp();
  }
  public function tearDown():void{
    parent::tearDown();
  }
  /**
   * Test the database.
   * This is throwing the 'headers already sent' error
   */
  public function testTheDatabase(){
    $this->seeInDatabase('classes', [
      'id' => 3
    
]);
  }

Reply


Messages In This Thread
Unit testing issue - by maxxd - 01-27-2020, 10:41 AM
RE: Unit testing issue - by maxxd - 01-28-2020, 08:27 AM
RE: Unit testing issue - by hatsat32 - 01-28-2020, 10:02 AM
RE: Unit testing issue - by MGatner - 01-29-2020, 06:02 PM
RE: Unit testing issue - by maxxd - 01-29-2020, 07:51 PM
RE: Unit testing issue - by hatsat32 - 01-31-2020, 09:51 AM
RE: Unit testing issue - by maxxd - 02-09-2020, 10:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB