add Thelia conf into Kernel process
This commit is contained in:
46
core/lib/Thelia/Tests/Config/Dumper/TpexConfigDumperTest.php
Normal file
46
core/lib/Thelia/Tests/Config/Dumper/TpexConfigDumperTest.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* */
|
||||
/* Thelia */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : info@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify */
|
||||
/* it under the terms of the GNU General Public License as published by */
|
||||
/* the Free Software Foundation; either version 3 of the License */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, */
|
||||
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
||||
/* GNU General Public License for more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License */
|
||||
/* along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
/* */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace Thelia\Tests\Config\Dumper;
|
||||
|
||||
use Thelia\Config\Dumper\TpexConfigDumper;
|
||||
|
||||
|
||||
class TpexConfigDumperTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
static protected $fixturePath;
|
||||
|
||||
public static function setUpBeforeClass()
|
||||
{
|
||||
self::$fixturePath = realpath(__DIR__ . "/../Fixtures/Dumper/Config");
|
||||
}
|
||||
|
||||
public function testDumpWithEmptyConfig()
|
||||
{
|
||||
$tpexDumper = new TpexConfigDumper(array(), array(), array(), array());
|
||||
|
||||
$this->assertStringEqualsFile(self::$fixturePath . "/Empty.php", $tpexDumper->dump());
|
||||
}
|
||||
|
||||
}
|
||||
25
core/lib/Thelia/Tests/Fixtures/Dumper/Config/Empty.php
Normal file
25
core/lib/Thelia/Tests/Fixtures/Dumper/Config/Empty.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/* File generated by \Thelia\Config\Dumper\TpexConfigDumper */
|
||||
class TpexConfig
|
||||
{
|
||||
|
||||
public function getLoopConfig()
|
||||
{
|
||||
return array();
|
||||
}
|
||||
|
||||
public function getFilterConfig()
|
||||
{
|
||||
return array();
|
||||
}
|
||||
|
||||
public function getBaseParamConfig()
|
||||
{
|
||||
return array();
|
||||
}
|
||||
|
||||
public function getLoopTestConfig()
|
||||
{
|
||||
return array();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user