Browse Source

Merge pull request #5511 from cakephp/3.0-unused-test-files

Delete unused test files
Mark Story 11 years ago
parent
commit
13e35887c1

+ 0 - 42
tests/Fixture/BinaryTestsFixture.php

@@ -1,42 +0,0 @@
-<?php
-/**
- * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice
- *
- * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
- * @since         1.2.0
- * @license       http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Test\Fixture;
-
-use Cake\TestSuite\Fixture\TestFixture;
-
-/**
- * Short description for class.
- *
- */
-class BinaryTestsFixture extends TestFixture {
-
-/**
- * fields property
- *
- * @var array
- */
-	public $fields = array(
-		'id' => ['type' => 'integer'],
-		'data' => ['type' => 'binary', 'length' => 300],
-		'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
-	);
-
-/**
- * records property
- *
- * @var array
- */
-	public $records = array();
-}

+ 0 - 53
tests/Fixture/CategoryThreadsFixture.php

@@ -1,53 +0,0 @@
-<?php
-/**
- * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice
- *
- * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
- * @since         1.2.0
- * @license       http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Test\Fixture;
-
-use Cake\TestSuite\Fixture\TestFixture;
-
-/**
- * Short description for class.
- *
- */
-class CategoryThreadsFixture extends TestFixture {
-
-/**
- * fields property
- *
- * @var array
- */
-	public $fields = array(
-		'id' => ['type' => 'integer'],
-		'parent_id' => ['type' => 'integer', 'null' => false],
-		'name' => ['type' => 'string', 'null' => false],
-		'created' => 'datetime',
-		'updated' => 'datetime',
-		'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
-	);
-
-/**
- * records property
- *
- * @var array
- */
-	public $records = array(
-		array('parent_id' => 0, 'name' => 'Category 1', 'created' => '2007-03-18 15:30:23', 'updated' => '2007-03-18 15:32:31'),
-		array('parent_id' => 1, 'name' => 'Category 1.1', 'created' => '2007-03-18 15:30:23', 'updated' => '2007-03-18 15:32:31'),
-		array('parent_id' => 2, 'name' => 'Category 1.1.1', 'created' => '2007-03-18 15:30:23', 'updated' => '2007-03-18 15:32:31'),
-		array('parent_id' => 3, 'name' => 'Category 1.1.2', 'created' => '2007-03-18 15:30:23', 'updated' => '2007-03-18 15:32:31'),
-		array('parent_id' => 4, 'name' => 'Category 1.1.1.1', 'created' => '2007-03-18 15:30:23', 'updated' => '2007-03-18 15:32:31'),
-		array('parent_id' => 5, 'name' => 'Category 2', 'created' => '2007-03-18 15:30:23', 'updated' => '2007-03-18 15:32:31'),
-		array('parent_id' => 6, 'name' => 'Category 2.1', 'created' => '2007-03-18 15:30:23', 'updated' => '2007-03-18 15:32:31')
-	);
-}

+ 0 - 52
tests/Fixture/DataTestsFixture.php

@@ -1,52 +0,0 @@
-<?php
-/**
- * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice
- *
- * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
- * @since         1.2.0
- * @license       http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Test\Fixture;
-
-use Cake\TestSuite\Fixture\TestFixture;
-
-/**
- * Short description for class.
- *
- */
-class DataTestsFixture extends TestFixture {
-
-/**
- * Fields property
- *
- * @var array
- */
-	public $fields = array(
-		'id' => ['type' => 'integer'],
-		'count' => ['type' => 'integer', 'default' => 0],
-		'float' => ['type' => 'float', 'default' => 0],
-		'created' => ['type' => 'datetime', 'default' => null],
-		'updated' => ['type' => 'datetime', 'default' => null],
-		'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
-	);
-
-/**
- * Records property
- *
- * @var array
- */
-	public $records = array(
-		array(
-			'count' => 2,
-			'float' => 2.4,
-			'created' => '2010-09-06 12:28:00',
-			'updated' => '2010-09-06 12:28:00'
-		)
-	);
-}

+ 0 - 48
tests/Fixture/DatatypesFixture.php

@@ -1,48 +0,0 @@
-<?php
-/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link          http://cakephp.org CakePHP(tm) Project
- * @since         1.2.0
- * @license       http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Test\Fixture;
-
-use Cake\TestSuite\Fixture\TestFixture;
-
-/**
- * Short description for class.
- *
- */
-class DatatypesFixture extends TestFixture {
-
-/**
- * Fields property
- *
- * @var array
- */
-	public $fields = array(
-		'id' => ['type' => 'integer', 'null' => false],
-		'decimal_field' => ['type' => 'decimal', 'length' => '6', 'precision' => 3, 'default' => '0.000'],
-		'float_field' => ['type' => 'float', 'length' => '5,2', 'null' => false, 'default' => null],
-		'huge_int' => ['type' => 'biginteger'],
-		'bool' => ['type' => 'boolean', 'null' => false, 'default' => false],
-		'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
-	);
-
-/**
- * Records property
- *
- * @var array
- */
-	public $records = [
-		['float_field' => 42.23, 'huge_int' => '1234567891234567891', 'bool' => 0],
-	];
-
-}

+ 0 - 67
tests/test_app/TestApp/Controller/AjaxAuthController.php

@@ -1,67 +0,0 @@
-<?php
-/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link          http://cakephp.org CakePHP(tm) Project
- * @since         3.0.0
- * @license       http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace TestApp\Controller;
-
-use Cake\Controller\Controller;
-use Cake\Event\Event;
-
-/**
- * AjaxAuthController class
- *
- */
-class AjaxAuthController extends Controller {
-
-/**
- * components property
- *
- * @var array
- */
-	public $components = array('Session', 'TestAuth');
-
-/**
- * uses property
- *
- * @var array
- */
-	public $uses = array();
-
-/**
- * testUrl property
- *
- * @var mixed
- */
-	public $testUrl = null;
-
-/**
- * add method
- *
- * @return void
- */
-	public function add() {
-		echo 'Added Record';
-	}
-
-/**
- * redirect method
- *
- * @param mixed $url
- * @param mixed $status
- * @param mixed $exit
- * @return void
- */
-	public function redirect($url, $status = null, $exit = true) {
-		$this->testUrl = Router::url($url);
-		return false;
-	}
-}

+ 0 - 24
tests/test_app/TestApp/Controller/CommentsController.php

@@ -1,24 +0,0 @@
-<?php
-/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link          http://cakephp.org CakePHP Project
- * @since         3.0.0
- * @license       http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace TestApp\Controller;
-
-use TestApp\Controller\AppController;
-
-/**
- * ControllerPostsController class
- *
- */
-class CommentsController extends AppController {
-
-}

+ 0 - 47
tests/test_app/TestApp/Controller/OrangeSessionTestController.php

@@ -1,47 +0,0 @@
-<?php
-/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link          http://cakephp.org CakePHP(tm) Project
- * @since         3.0.0
- * @license       http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace TestApp\Controller;
-
-use Cake\Controller\Controller;
-
-/**
- * OrangeSessionTestController class
- *
- */
-class OrangeSessionTestController extends Controller {
-
-/**
- * uses property
- *
- * @var array
- */
-	public $uses = array();
-
-/**
- * List of components
- *
- * @var array
- */
-	public $components = ['Session'];
-
-/**
- * session_id method
- *
- * @return \Cake\Network\Session
- */
-	public function session_id() {
-		$this->response->body($this->Session->id());
-		return $this->response;
-	}
-}

+ 0 - 47
tests/test_app/TestApp/Controller/SessionTestController.php

@@ -1,47 +0,0 @@
-<?php
-/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link          http://cakephp.org CakePHP(tm) Project
- * @since         3.0.0
- * @license       http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace TestApp\Controller;
-
-use Cake\Controller\Controller;
-
-/**
- * SessionTestController class
- *
- */
-class SessionTestController extends Controller {
-
-/**
- * uses property
- *
- * @var array
- */
-	public $uses = array();
-
-/**
- * List of components
- *
- * @var array
- */
-	public $components = ['Session'];
-
-/**
- * session_id method
- *
- * @return \Cake\Network\Response
- */
-	public function session_id() {
-		$this->response->body($this->Session->id());
-		return $this->response;
-	}
-}

+ 0 - 70
tests/test_app/TestApp/Controller/SomePostsController.php

@@ -1,70 +0,0 @@
-<?php
-/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link          http://cakephp.org CakePHP(tm) Project
- * @since         3.0.0
- * @license       http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace TestApp\Controller;
-
-use Cake\Controller\Controller;
-use Cake\Event\Event;
-
-/**
- * SomePostsController class
- *
- */
-class SomePostsController extends Controller {
-
-/**
- * uses property
- *
- * @var array
- */
-	public $uses = array();
-
-/**
- * autoRender property
- *
- * @var bool
- */
-	public $autoRender = false;
-
-/**
- * beforeFilter method
- *
- * @param Event $event
- * @return void
- */
-	public function beforeFilter(Event $event) {
-		if ($this->request->params['action'] === 'index') {
-			$this->request->params['action'] = 'view';
-		} else {
-			$this->request->params['action'] = 'change';
-		}
-		$this->request->params['pass'] = array('changed');
-	}
-
-/**
- * index method
- *
- * @return void
- */
-	public function index() {
-	}
-
-/**
- * change method
- *
- * @return void
- */
-	public function change() {
-	}
-
-}

+ 0 - 97
tests/test_app/TestApp/Controller/TestCachedPagesController.php

@@ -1,97 +0,0 @@
-<?php
-namespace TestApp\Controller;
-
-use Cake\Controller\Controller;
-
-/**
- * TestCachedPagesController class
- *
- */
-class TestCachedPagesController extends Controller {
-
-/**
- * uses property
- *
- * @var array
- */
-	public $uses = array();
-
-/**
- * helpers property
- *
- * @var array
- */
-	public $helpers = array('Cache', 'Html');
-
-/**
- * cacheAction property
- *
- * @var array
- */
-	public $cacheAction = array(
-		'index' => '+2 sec',
-		'test_nocache_tags' => '+2 sec',
-		'view' => '+2 sec'
-	);
-
-/**
- * Mock out the response object so it doesn't send headers.
- *
- * @var string
- */
-	protected $_responseClass = 'Cake\Test\TestCase\Routing\DispatcherMockResponse';
-
-/**
- * viewPath property
- *
- * @var string
- */
-	public $viewPath = 'Posts';
-
-/**
- * index method
- *
- * @return void
- */
-	public function index() {
-		$this->render();
-	}
-
-/**
- * test_nocache_tags method
- *
- * @return void
- */
-	public function test_nocache_tags() {
-		$this->render();
-	}
-
-/**
- * view method
- *
- * @param $id
- * @return void
- */
-	public function view($id = null) {
-		$this->render('index');
-	}
-
-/**
- * test cached forms / tests view object being registered
- *
- * @return void
- */
-	public function cache_form() {
-		$this->cacheAction = 10;
-		$this->helpers[] = 'Form';
-	}
-
-/**
- * Test cached views with themes.
- */
-	public function themed() {
-		$this->cacheAction = 10;
-		$this->theme = 'TestTheme';
-	}
-
-}

+ 0 - 29
tests/test_app/TestApp/Controller/TestConfigsController.php

@@ -1,29 +0,0 @@
-<?php
-/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- *
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link          http://cakephp.org CakePHP(tm) Project
- * @since         3.0.0
- * @license       http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace TestApp\Controller;
-
-use Cake\Controller\ErrorController;
-
-class TestConfigsController extends ErrorController {
-
-	public $components = array(
-		'RequestHandler' => array(
-			'some' => 'config'
-		)
-	);
-
-}

+ 0 - 47
tests/test_app/TestApp/Controller/TestDispatchPagesController.php

@@ -1,47 +0,0 @@
-<?php
-/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link          http://cakephp.org CakePHP(tm) Project
- * @since         3.0.0
- * @license       http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace TestApp\Controller;
-
-use Cake\Controller\Controller;
-
-/**
- * TestDispatchPagesController class
- *
- */
-class TestDispatchPagesController extends Controller {
-
-/**
- * uses property
- *
- * @var array
- */
-	public $uses = array();
-
-/**
- * admin_index method
- *
- * @return void
- */
-	public function admin_index() {
-	}
-
-/**
- * camelCased method
- *
- * @return void
- */
-	public function camelCased() {
-	}
-
-}

+ 0 - 84
tests/test_app/TestApp/Controller/TestsAppsPostsController.php

@@ -1,84 +0,0 @@
-<?php
-/**
- * TestsAppsPostsController file
- *
- * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice
- *
- * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
- * @since         1.2.0
- * @license       http://www.opensource.org/licenses/mit-license.php MIT License
- */
-
-/**
- * Class TestsAppsPostsController
- *
- */
-namespace TestApp\Controller;
-
-class TestsAppsPostsController extends AppController {
-
-	public $viewPath = 'TestsApps';
-
-/**
- * add method
- *
- * @return void
- */
-	public function add() {
-		$this->loadModel('Posts');
-		$entity = $this->Posts->newEntity($this->request->data);
-		if ($entity) {
-			$this->Posts->save($entity);
-		}
-		$this->set('posts', $this->Posts->find('all'));
-		$this->render('index');
-	}
-
-/**
- * check URL params
- *
- * @return void
- */
-	public function url_var() {
-		$this->set('params', $this->request->params);
-		$this->render('index');
-	}
-
-/**
- * post var testing
- *
- * @return void
- */
-	public function post_var() {
-		$this->set('data', $this->request->data);
-		$this->render('index');
-	}
-
-/**
- * input_data()
- *
- * @return void
- */
-	public function input_data() {
-		$this->set('data', $this->request->input('json_decode', true));
-		$this->render('index');
-	}
-
-/**
- * Fixturized action for testAction()
- *
- * @return void
- */
-	public function fixtured() {
-		$this->loadModel('Posts');
-		$this->set('posts', $this->Posts->find('all'));
-		$this->render('index');
-	}
-
-}

+ 0 - 25
tests/test_app/TestApp/Lib/Library.php

@@ -1,25 +0,0 @@
-<?php
-/**
- * Test Suite Library
- *
- * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice
- *
- * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
- * @since         1.3.0
- * @license       http://www.opensource.org/licenses/mit-license.php MIT License
- */
-
-/**
- * Class Library
- *
- */
-namespace TestApp\Lib;
-
-class Library {
-}

+ 0 - 33
tests/test_app/TestApp/Model/Table/CategoryThreadsTable.php

@@ -1,33 +0,0 @@
-<?php
-/**
- * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
- * Copyright 2005-2013, Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * Redistributions of files must retain the above copyright notice
- *
- * @since         3.0.0
- * @license       http://www.opensource.org/licenses/mit-license.php MIT License
- */
-namespace TestApp\Model\Table;
-
-use Cake\ORM\Table;
-
-/**
- * CategoryThreadsTable
- */
-class CategoryThreadsTable extends Table {
-
-	public function initialize(array $config) {
-		$this->table('category_threads');
-		$this->belongsTo('ParentCategoryThreads', [
-			'className' => __CLASS__,
-			'foreignKey' => 'parent_id'
-		]);
-		$this->hasMany('ChildCategoryThreads', [
-			'className' => __CLASS__,
-			'foreignKey' => 'parent_id'
-		]);
-	}
-
-}

+ 0 - 25
tests/test_app/TestApp/Utility/TestUtilityClass.php

@@ -1,25 +0,0 @@
-<?php
-/**
- * Test Suite TestUtilityClass Library
- *
- * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice
- *
- * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
- * @since         1.3.0
- * @license       http://www.opensource.org/licenses/mit-license.php MIT License
- */
-
-/**
- * Class TestUtilityClass
- *
- */
-namespace TestApp\Utility;
-
-class TestUtilityClass {
-}