for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* CakeCMS Core
*
* This file is part of the of the simple cms based on CakePHP 3.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* @package Core
* @license MIT
* @copyright MIT License http://www.opensource.org/licenses/mit-license.php
* @link https://github.com/CakeCMS/Core".
* @author Sergey Kalistratov <[email protected]>
*/
namespace Core\TestSuite;
use Core\Plugin;
use Cake\TestSuite\TestCase as CakeTestCase;
* Class TestCase
* @package Core\TestSuite
class TestCase extends CakeTestCase
{
* Default plugin name.
* @var string
protected $_plugin = 'Core';
* Setup the test case, backup the static object values so they can be restored.
* Specifically backs up the contents of Configure and paths in App if they have
* not already been backed up.
* @return void
public function setUp()
parent::setUp();
Plugin::load($this->_plugin, ['path' => ROOT . DS, 'bootstrap' => true]);
}
* Clears the state used for requests.
public function tearDown()
parent::tearDown();
Plugin::unload($this->_plugin);