From 5e58fa106fa9190bf218188548e6faaf5357feea Mon Sep 17 00:00:00 2001 From: jpramirez Date: Tue, 2 Feb 2021 16:28:45 +0100 Subject: [PATCH] #7 Removes the CakePHP fixture init (#9) (#11) Co-authored-by: Juan Pablo Ramirez <> --- src/FixtureManager.php | 10 +--------- tests/bootstrap.php | 4 ++++ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/FixtureManager.php b/src/FixtureManager.php index 5eaf1df..1cc649e 100644 --- a/src/FixtureManager.php +++ b/src/FixtureManager.php @@ -45,9 +45,7 @@ class FixtureManager extends BaseFixtureManager */ public function __construct() { - $this - ->initDb() - ->loadConfig(); + $this->loadConfig(); } /** @@ -59,12 +57,6 @@ public function getConnection($name = 'test') return ConnectionManager::get($name); } - public function initDb(): FixtureManager - { - $this->_initDb(); - return $this; - } - /** * @return void */ diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 4f86177..c1aa9cf 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -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');