Skip to content

Commit

Permalink
#7 Removes the CakePHP fixture init (#9) (#11)
Browse files Browse the repository at this point in the history
Co-authored-by: Juan Pablo Ramirez <>
  • Loading branch information
pabloelcolombiano authored Feb 2, 2021
1 parent f0a68d4 commit 5e58fa1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 1 addition & 9 deletions src/FixtureManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ class FixtureManager extends BaseFixtureManager
*/
public function __construct()
{
$this
->initDb()
->loadConfig();
$this->loadConfig();
}

/**
Expand All @@ -59,12 +57,6 @@ public function getConnection($name = 'test')
return ConnectionManager::get($name);
}

public function initDb(): FixtureManager
{
$this->_initDb();
return $this;
}

/**
* @return void
*/
Expand Down
4 changes: 4 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@

require_once CORE_PATH . 'config/bootstrap.php';

# For testing purpose, initiate the FixtureManager first
# This is not required.
new \CakephpTestSuiteLight\FixtureManager();

date_default_timezone_set('UTC');
mb_internal_encoding('UTF-8');

Expand Down

0 comments on commit 5e58fa1

Please sign in to comment.