Refactored Config.
This commit is contained in:
parent
e23ad3237a
commit
dd9f43b7dd
37 changed files with 40 additions and 43 deletions
|
|
@ -3,7 +3,7 @@
|
|||
namespace Tests\b8;
|
||||
|
||||
use b8\Form;
|
||||
use b8\Config;
|
||||
use PHPCensor\Config;
|
||||
|
||||
class FormTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ class WebhookControllerTest extends \PHPUnit\Framework\TestCase
|
|||
public function test_wrong_action_name_return_json_with_error()
|
||||
{
|
||||
$webController = new WebhookController(
|
||||
$this->prophesize('b8\Config')->reveal(),
|
||||
$this->prophesize('PHPCensor\Config')->reveal(),
|
||||
$this->prophesize('b8\Http\Request')->reveal(),
|
||||
$this->prophesize('b8\Http\Response')->reveal()
|
||||
);
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Tests\b8;
|
||||
|
||||
use b8\Config;
|
||||
use PHPCensor\Config;
|
||||
use PHPCensor\Database;
|
||||
|
||||
class DatabaseMysqlTest extends \PHPUnit_Extensions_Database_TestCase
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Tests\b8;
|
||||
|
||||
use b8\Config;
|
||||
use PHPCensor\Config;
|
||||
use PHPCensor\Database;
|
||||
|
||||
class DatabasePostgresqlTest extends \PHPUnit_Extensions_Database_TestCase
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Tests\PHPCensor\Plugin;
|
||||
|
||||
use b8\Config;
|
||||
use PHPCensor\Config;
|
||||
use PHPCensor\Plugin;
|
||||
use PHPCensor\Plugin\Email as EmailPlugin;
|
||||
use PHPCensor\Model\Build;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Tests\PHPCensor;
|
||||
|
||||
use b8\Config;
|
||||
use PHPCensor\Config;
|
||||
use PHPCensor\Database;
|
||||
use PHPCensor\Store\Factory;
|
||||
use PHPCensor\Model\Project;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Tests\PHPCensor;
|
||||
|
||||
use b8\Config;
|
||||
use PHPCensor\Config;
|
||||
use PHPCensor\Database;
|
||||
use PHPCensor\Store\Factory;
|
||||
use PHPCensor\Model\Project;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ $conf['b8']['app']['default_controller'] = 'Home';
|
|||
$conf['b8']['view']['path'] = SRC_DIR . 'View/';
|
||||
$conf['php-censor']['url'] = 'http://php-censor.local';
|
||||
|
||||
$config = new b8\Config($conf);
|
||||
$config = new PHPCensor\Config($conf);
|
||||
|
||||
if (!defined('APP_URL')) {
|
||||
define('APP_URL', $config->get('php-censor.url', '') . '/');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue