Skip to content

Commit

Permalink
Remove un-used files.
Browse files Browse the repository at this point in the history
* Update Plugin tests as there was an unused plugin.
  • Loading branch information
markstory committed Oct 14, 2012
1 parent 7fe7ce7 commit 471709a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 185 deletions.
48 changes: 0 additions & 48 deletions lib/Cake/Test/TestApp/Controller/MergeVariablesController.php

This file was deleted.

41 changes: 0 additions & 41 deletions lib/Cake/Test/TestApp/Controller/MergeVarsAppController.php

This file was deleted.

Empty file.
47 changes: 0 additions & 47 deletions lib/Cake/Test/TestApp/Plugin/MergeVar/Controller/Controller.php

This file was deleted.

This file was deleted.

13 changes: 5 additions & 8 deletions lib/Cake/Test/TestCase/Core/PluginTest.php
@@ -1,9 +1,5 @@
<?php
/**
* PluginTest file.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
Expand All @@ -12,11 +8,11 @@
*
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package Cake.Test.Case.Core
* @since CakePHP(tm) v 2.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Test\TestCase\Core;

use Cake\Core\App;
use Cake\Core\Configure;
use Cake\Core\Plugin;
Expand All @@ -25,6 +21,7 @@
/**
* PluginTest class
*
* @package Cake.Test.Case.Core
*/
class PluginTest extends TestCase {

Expand Down Expand Up @@ -245,7 +242,7 @@ public function testPathNotFound() {
*/
public function testLoadAll() {
Plugin::loadAll();
$expected = array('MergeVar', 'PluginJs', 'TestPlugin', 'TestPluginTwo');
$expected = ['PluginJs', 'TestPlugin', 'TestPluginTwo'];
$this->assertEquals($expected, Plugin::loaded());
}

Expand All @@ -257,7 +254,7 @@ public function testLoadAll() {
public function testLoadAllWithDefaults() {
$defaults = array('bootstrap' => true);
Plugin::loadAll(array($defaults));
$expected = array('MergeVar', 'PluginJs', 'TestPlugin', 'TestPluginTwo');
$expected = ['PluginJs', 'TestPlugin', 'TestPluginTwo'];
$this->assertEquals($expected, Plugin::loaded());
$this->assertEquals('loaded js plugin bootstrap', Configure::read('PluginTest.js_plugin.bootstrap'));
$this->assertEquals('loaded plugin bootstrap', Configure::read('PluginTest.test_plugin.bootstrap'));
Expand All @@ -274,7 +271,7 @@ public function testLoadAllWithDefaultsAndOverride() {
Plugin::loadAll(array(array('bootstrap' => true), 'TestPlugin' => array('routes' => true)));
Plugin::routes();

$expected = array('MergeVar', 'PluginJs', 'TestPlugin', 'TestPluginTwo');
$expected = ['PluginJs', 'TestPlugin', 'TestPluginTwo'];
$this->assertEquals($expected, Plugin::loaded());
$this->assertEquals('loaded js plugin bootstrap', Configure::read('PluginTest.js_plugin.bootstrap'));
$this->assertEquals('loaded plugin routes', Configure::read('PluginTest.test_plugin.routes'));
Expand Down

0 comments on commit 471709a

Please sign in to comment.