Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing doc blocks in Test suite and some visibility keywords. #237

Merged
merged 1 commit into from Oct 10, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/AllBehaviorsTest.php
Expand Up @@ -19,7 +19,7 @@
/** /**
* AllBehaviorsTest class * AllBehaviorsTest class
* *
* This test group will run all test in the cases/libs/models/behaviors directory * This test group will run all test in the Case/Model/Behavior directory
* *
* @package Cake.Test.Case * @package Cake.Test.Case
*/ */
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/AllControllerTest.php
Expand Up @@ -20,7 +20,7 @@
/** /**
* AllControllersTest class * AllControllersTest class
* *
* This test group will run cache engine tests. * This test group will run Controller related tests.
* *
* @package Cake.Test.Case * @package Cake.Test.Case
*/ */
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/AllHelpersTest.php
Expand Up @@ -20,7 +20,7 @@
/** /**
* HelpersGroupTest class * HelpersGroupTest class
* *
* This test group will run all test in the cases/libs/view/helpers directory. * This test group will run all Helper related tests.
* *
* @package Cake.Test.Case * @package Cake.Test.Case
*/ */
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/AllRoutingTest.php
Expand Up @@ -20,7 +20,7 @@
/** /**
* AllRoutingTest class * AllRoutingTest class
* *
* This test group will run view class tests (view, theme) * This test group will routing related tests.
* *
* @package Cake.Test.Case * @package Cake.Test.Case
*/ */
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/AllTestSuiteTest.php
Expand Up @@ -20,7 +20,7 @@
/** /**
* AllTestSuiteTest class * AllTestSuiteTest class
* *
* This test group will run socket class tests * This test group will run all test suite tests.
* *
* @package Cake.Test.Case * @package Cake.Test.Case
*/ */
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/AllTestsTest.php
Expand Up @@ -19,7 +19,7 @@
/** /**
* AllTests class * AllTests class
* *
* This test group will run all test in the cases/libs/models/behaviors directory * This test group will run all tests.
* *
* @package Cake.Test.Case * @package Cake.Test.Case
*/ */
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Configure/IniReaderTest.php
Expand Up @@ -25,7 +25,7 @@ class IniReaderTest extends CakeTestCase {
* *
* @var string * @var string
*/ */
var $file; public $file;


/** /**
* setup * setup
Expand Down
@@ -1,6 +1,6 @@
<?php <?php
/** /**
* CommandList file * CommandListShellTest file
* *
* PHP 5 * PHP 5
* *
Expand Down
4 changes: 2 additions & 2 deletions lib/Cake/Test/Case/Console/Command/ShellTest.php
Expand Up @@ -77,8 +77,8 @@ public function mergeVars($properties, $class, $normalize = true) {
* @package Cake.Test.Case.Console.Command * @package Cake.Test.Case.Console.Command
*/ */
class TestMergeShell extends Shell { class TestMergeShell extends Shell {
var $tasks = array('DbConfig', 'Fixture'); public $tasks = array('DbConfig', 'Fixture');
var $uses = array('Comment'); public $uses = array('Comment');
} }


/** /**
Expand Down
17 changes: 17 additions & 0 deletions lib/Cake/Test/Case/Console/HelpFormatterTest.php
@@ -1,4 +1,21 @@
<?php <?php
/**
* HelpFormatterTest file
*
* PHP 5
*
* CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
* Copyright 2005-2011, Cake Software Foundation, Inc.
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice
*
* @copyright Copyright 2005-2011, Cake Software Foundation, Inc.
* @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
* @package Cake.Test.Case.Console
* @since CakePHP(tm) v 2.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/


App::uses('ConsoleOptionParser', 'Console'); App::uses('ConsoleOptionParser', 'Console');
App::uses('HelpFormatter', 'Console'); App::uses('HelpFormatter', 'Console');
Expand Down
@@ -1,6 +1,9 @@
<?php <?php
/** /**
* ActionsAuthorizeTest file
* *
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
* *
Expand Down
@@ -1,6 +1,9 @@
<?php <?php
/** /**
* BasicAuthenticateTest file
* *
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
* *
Expand Down
@@ -1,6 +1,9 @@
<?php <?php
/** /**
* ControllerAuthorizeTest file
* *
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
* *
Expand Down
@@ -1,6 +1,9 @@
<?php <?php
/** /**
* CrudAuthorizeTest file
* *
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
* *
Expand Down
@@ -1,6 +1,9 @@
<?php <?php
/** /**
* DigestAuthenticateTest file
* *
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
* *
Expand Down
@@ -1,6 +1,9 @@
<?php <?php
/** /**
* FormAuthenticateTest file
* *
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
* *
Expand Down
18 changes: 18 additions & 0 deletions lib/Cake/Test/Case/Controller/Component/DbAclTest.php
@@ -1,4 +1,22 @@
<?php <?php
/**
* DbAclTest file.
*
* PHP 5
*
* 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
* @package Cake.Test.Case.Controller.Component
* @since CakePHP(tm) v 2.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

App::uses('AclComponent', 'Controller/Component'); App::uses('AclComponent', 'Controller/Component');
App::uses('AclNode', 'Model'); App::uses('AclNode', 'Model');
class_exists('AclComponent'); class_exists('AclComponent');
Expand Down
18 changes: 18 additions & 0 deletions lib/Cake/Test/Case/Controller/Component/IniAclTest.php
@@ -1,4 +1,22 @@
<?php <?php
/**
* IniAclTest file.
*
* PHP 5
*
* 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
* @package Cake.Test.Case.Controller.Component
* @since CakePHP(tm) v 2.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

App::uses('AclComponent', 'Controller/Component'); App::uses('AclComponent', 'Controller/Component');
class_exists('AclComponent'); class_exists('AclComponent');


Expand Down
17 changes: 17 additions & 0 deletions lib/Cake/Test/Case/Core/AppTest.php
@@ -1,4 +1,21 @@
<?php <?php
/**
* AppTest file.
*
* PHP 5
*
* 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
* @package Cake.Test.Case.Core
* @since CakePHP(tm) v 2.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/


/** /**
* AppTest class * AppTest class
Expand Down
18 changes: 17 additions & 1 deletion lib/Cake/Test/Case/Core/CakePluginTest.php
@@ -1,5 +1,21 @@
<?php <?php

/**
* CakePluginTest file.
*
* PHP 5
*
* 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
* @package Cake.Test.Case.Core
* @since CakePHP(tm) v 2.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/


App::uses('CakePlugin', 'Core'); App::uses('CakePlugin', 'Core');


Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Error/ErrorHandlerTest.php
Expand Up @@ -28,7 +28,7 @@
*/ */
class ErrorHandlerTest extends CakeTestCase { class ErrorHandlerTest extends CakeTestCase {


var $_restoreError = false; public $_restoreError = false;
/** /**
* setup create a request object to get out of router later. * setup create a request object to get out of router later.
* *
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Error/ExceptionRendererTest.php
Expand Up @@ -141,7 +141,7 @@ class MissingWidgetThingException extends NotFoundException { }
*/ */
class ExceptionRendererTest extends CakeTestCase { class ExceptionRendererTest extends CakeTestCase {


var $_restoreError = false; public $_restoreError = false;
/** /**
* setup create a request object to get out of router later. * setup create a request object to get out of router later.
* *
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Model/Behavior/AclBehaviorTest.php
Expand Up @@ -166,7 +166,7 @@ class AclPost extends CakeTestModel {
* *
* @var array * @var array
*/ */
var $actsAs = array('Acl' => 'Controlled'); public $actsAs = array('Acl' => 'Controlled');


/** /**
* parentNode * parentNode
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Test/Case/Model/ConnectionManagerTest.php
Expand Up @@ -2,7 +2,6 @@
/** /**
* Connection Manager tests * Connection Manager tests
* *
*
* PHP 5 * PHP 5
* *
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
Expand Down
2 changes: 0 additions & 2 deletions lib/Cake/Test/Case/Model/ModelIntegrationTest.php
@@ -1,6 +1,4 @@
<?php <?php
/* SVN FILE: $Id: model.test.php 8225 2009-07-08 03:25:30Z mark_story $ */

/** /**
* ModelIntegrationTest file * ModelIntegrationTest file
* *
Expand Down
2 changes: 0 additions & 2 deletions lib/Cake/Test/Case/Model/ModelValidationTest.php
@@ -1,6 +1,4 @@
<?php <?php
/* SVN FILE: $Id: model.test.php 8225 2009-07-08 03:25:30Z mark_story $ */

/** /**
* ModelValidationTest file * ModelValidationTest file
* *
Expand Down
16 changes: 8 additions & 8 deletions lib/Cake/Test/Case/Model/models.php
Expand Up @@ -260,9 +260,9 @@ static function titleDuplicate ($title) {
* @package Cake.Test.Case.Model * @package Cake.Test.Case.Model
*/ */
class BeforeDeleteComment extends CakeTestModel { class BeforeDeleteComment extends CakeTestModel {
var $name = 'BeforeDeleteComment'; public $name = 'BeforeDeleteComment';


var $useTable = 'comments'; public $useTable = 'comments';


public function beforeDelete($cascade = true) { public function beforeDelete($cascade = true) {
$db = $this->getDataSource(); $db = $this->getDataSource();
Expand Down Expand Up @@ -3180,8 +3180,8 @@ class GroupUpdateAll extends CakeTestModel {
} }


class TransactionTestModel extends CakeTestModel { class TransactionTestModel extends CakeTestModel {
var $name = 'TransactionTestModel'; public $name = 'TransactionTestModel';
var $useTable = 'samples'; public $useTable = 'samples';


public function afterSave($created) { public function afterSave($created) {
$data = array( $data = array(
Expand All @@ -3192,8 +3192,8 @@ public function afterSave($created) {
} }


class TransactionManyTestModel extends CakeTestModel { class TransactionManyTestModel extends CakeTestModel {
var $name = 'TransactionManyTestModel'; public $name = 'TransactionManyTestModel';
var $useTable = 'samples'; public $useTable = 'samples';


public function afterSave($created) { public function afterSave($created) {
$data = array( $data = array(
Expand Down Expand Up @@ -4397,8 +4397,8 @@ public function schema($field = false) {
class PrefixTestModel extends CakeTestModel { class PrefixTestModel extends CakeTestModel {
} }
class PrefixTestUseTableModel extends CakeTestModel { class PrefixTestUseTableModel extends CakeTestModel {
var $name = 'PrefixTest'; public $name = 'PrefixTest';
var $useTable = 'prefix_tests'; public $useTable = 'prefix_tests';
} }


/** /**
Expand Down
@@ -1,6 +1,6 @@
<?php <?php
/** /**
* BasicMethodTest file * BasicAuthenticationTest file
* *
* PHP 5 * PHP 5
* *
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Network/Http/HttpResponseTest.php
@@ -1,6 +1,6 @@
<?php <?php
/** /**
* HttpSocketTest file * HttpResponseTest file
* *
* PHP 5 * PHP 5
* *
Expand Down
17 changes: 17 additions & 0 deletions lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php
@@ -1,4 +1,21 @@
<?php <?php
/**
* CakeRequest Test case file.
*
* PHP 5
*
* 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
* @package Cake.Test.Case.Routing.Route
* @since CakePHP(tm) v 2.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/


App::uses('CakeRoute', 'Routing/Route'); App::uses('CakeRoute', 'Routing/Route');
App::uses('Router', 'Routing'); App::uses('Router', 'Routing');
Expand Down