Permalink
Browse files

Typo fixes in tests

  • Loading branch information...
1 parent 94db313 commit 4176e59e529de2df0dac504b552747a9785dacfe @shama shama committed Feb 23, 2012
Showing with 82 additions and 88 deletions.
  1. +1 −1 lib/Cake/Test/Case/Cache/CacheTest.php
  2. +1 −1 lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php
  3. +1 −1 lib/Cake/Test/Case/Configure/IniReaderTest.php
  4. +2 −2 lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php
  5. +2 −2 lib/Cake/Test/Case/Controller/Component/Acl/PhpAclTest.php
  6. +3 −3 lib/Cake/Test/Case/Controller/Component/AclComponentTest.php
  7. +1 −1 lib/Cake/Test/Case/Controller/Component/Auth/DigestAuthenticateTest.php
  8. +1 −1 lib/Cake/Test/Case/Controller/Component/Auth/FormAuthenticateTest.php
  9. +2 −2 lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php
  10. +2 −2 lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php
  11. +2 −2 lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php
  12. +4 −6 lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php
  13. +2 −2 lib/Cake/Test/Case/Controller/ControllerMergeVarsTest.php
  14. +3 −3 lib/Cake/Test/Case/Core/CakePluginTest.php
  15. +1 −1 lib/Cake/Test/Case/Core/ConfigureTest.php
  16. +1 −1 lib/Cake/Test/Case/Log/CakeLogTest.php
  17. +0 −4 lib/Cake/Test/Case/Model/Behavior/AclBehaviorTest.php
  18. +1 −1 lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php
  19. +2 −2 lib/Cake/Test/Case/Model/Behavior/TreeBehaviorNumberTest.php
  20. +4 −3 lib/Cake/Test/Case/Model/BehaviorCollectionTest.php
  21. +2 −2 lib/Cake/Test/Case/Model/CakeSchemaTest.php
  22. +1 −1 lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php
  23. +1 −1 lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php
  24. +1 −1 lib/Cake/Test/Case/Model/ModelReadTest.php
  25. +3 −3 lib/Cake/Test/Case/Model/ModelValidationTest.php
  26. +6 −6 lib/Cake/Test/Case/Model/ModelWriteTest.php
  27. +1 −1 lib/Cake/Test/Case/Model/models.php
  28. +3 −3 lib/Cake/Test/Case/Network/Http/HttpResponseTest.php
  29. +2 −2 lib/Cake/Test/Case/Network/Http/HttpSocketTest.php
  30. +1 −1 lib/Cake/Test/Case/Routing/DispatcherTest.php
  31. +1 −1 lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php
  32. +1 −1 lib/Cake/Test/Case/Routing/RouterTest.php
  33. +1 −1 lib/Cake/Test/Case/Utility/CakeTimeTest.php
  34. +1 −1 lib/Cake/Test/Case/Utility/DebuggerTest.php
  35. +2 −2 lib/Cake/Test/Case/Utility/FileTest.php
  36. +9 −9 lib/Cake/Test/Case/Utility/FolderTest.php
  37. +0 −1 lib/Cake/Test/Case/Utility/InflectorTest.php
  38. +2 −2 lib/Cake/Test/Case/Utility/ObjectCollectionTest.php
  39. +1 −1 lib/Cake/Test/Case/Utility/XmlTest.php
  40. +2 −2 lib/Cake/Test/Case/View/Helper/CacheHelperTest.php
  41. +1 −1 lib/Cake/Test/Case/View/Helper/FormHelperTest.php
  42. +1 −1 lib/Cake/Test/Case/View/Helper/SessionHelperTest.php
  43. +1 −1 lib/Cake/Test/Case/View/HelperTest.php
  44. +2 −2 lib/Cake/Test/Case/View/ViewTest.php
@@ -205,7 +205,7 @@ public function testConfigSettingDefaultConfigKey() {
public function testWritingWithConfig() {
$_cacheConfigSessions = Cache::config('sessions');
- Cache::write('test_somthing', 'this is the test data', 'tests');
+ Cache::write('test_something', 'this is the test data', 'tests');
$expected = array(
'path' => TMP . 'sessions' . DS,
@@ -366,7 +366,7 @@ public function testClear() {
}
/**
- * test that a 0 duration can succesfully write.
+ * test that a 0 duration can successfully write.
*
* @return void
*/
@@ -38,7 +38,7 @@ public function setUp() {
}
/**
- * test constrction
+ * test construct
*
* @return void
*/
@@ -38,7 +38,7 @@ public function testDescription() {
}
/**
- * test setting the console epliog
+ * test setting the console epilog
*
* @return void
*/
@@ -302,7 +302,7 @@ public function testOptionWithValueStartingWithMinus() {
public function testPositionalArgument() {
$parser = new ConsoleOptionParser('test', false);
$result = $parser->addArgument('name', array('help' => 'An argument'));
- $this->assertEquals($parser, $result, 'Should returnn this');
+ $this->assertEquals($parser, $result, 'Should return this');
}
/**
@@ -146,7 +146,7 @@ public function testCheck() {
$this->assertTrue($this->Acl->check('jan', 'foo/bar'));
$this->assertTrue($this->Acl->check('user/jan', 'foo/bar'));
$this->assertTrue($this->Acl->check('Role/admin', 'controllers/bar'));
- $this->assertTrue($this->Acl->check(array('User' => array('username' =>'jan')), '/controlers/bar/bll'));
+ $this->assertTrue($this->Acl->check(array('User' => array('username' =>'jan')), '/controllers/bar/bll'));
$this->assertTrue($this->Acl->check('Role/database_manager', 'controllers/db/create'));
$this->assertTrue($this->Acl->check('User/db_manager_2', 'controllers/db/create'));
$this->assertFalse($this->Acl->check('db_manager_2', '/controllers/users/Dashboard'));
@@ -338,7 +338,7 @@ public function testPolicy() {
$this->assertTrue($this->Acl->check('Role/sales', 'controllers/bla/create'));
$this->assertTrue($this->Acl->check('Role/default', 'foo'));
// undefined user, undefined aco
- $this->assertTrue($this->Acl->check('foobart', 'foo/bar'));
+ $this->assertTrue($this->Acl->check('foobar', 'foo/bar'));
// deny rule: Role.sales -> controllers.*.delete
$this->assertFalse($this->Acl->check('Role/sales', 'controllers/bar/delete'));
@@ -51,8 +51,8 @@ public function tearDown() {
}
/**
- * test that construtor throws an exception when Acl.classname is a
- * non-existant class
+ * test that constructor throws an exception when Acl.classname is a
+ * non-existent class
*
* @expectedException CakeException
* @return void
@@ -64,7 +64,7 @@ public function testConstrutorException() {
}
/**
- * test that adapter() allows control of the interal implementation AclComponent uses.
+ * test that adapter() allows control of the internal implementation AclComponent uses.
*
* @return void
*/
@@ -160,7 +160,7 @@ public function testAuthenticateChallenge() {
}
/**
- * test authenticate sucesss
+ * test authenticate success
*
* @return void
*/
@@ -115,7 +115,7 @@ public function testAuthenticateInjection() {
}
/**
- * test authenticate sucesss
+ * test authenticate success
*
* @return void
*/
@@ -481,7 +481,7 @@ public function testIsAuthorizedMissingFile() {
}
/**
- * test that isAuthroized calls methods correctly
+ * test that isAuthorized calls methods correctly
*
* @return void
*/
@@ -881,7 +881,7 @@ public function testLoginRedirect() {
}
/**
- * test that no redirects or authoization tests occur on the loginAction
+ * test that no redirects or authorization tests occur on the loginAction
*
* @return void
*/
@@ -162,7 +162,7 @@ public function paginateCount($conditions, $recursive, $extra) {
}
/**
- * PaginatorControllerCommentclass
+ * PaginatorControllerComment class
*
* @package Cake.Test.Case.Controller.Component
*/
@@ -191,7 +191,7 @@ class PaginatorControllerComment extends CakeTestModel {
}
/**
- * PaginatorAuthorclass
+ * PaginatorAuthor class
*
* @package Cake.Test.Case.Controller.Component
*/
@@ -189,7 +189,7 @@ public function testInitializeContentTypeWithjQueryAccept() {
/**
* Test that RequestHandler sets $this->ext when jQuery sends its wonky-ish headers
- * and the application is configured to handle multiplate extensions
+ * and the application is configured to handle multiple extensions
*
* @return void
*/
@@ -203,7 +203,7 @@ public function testInitializeContentTypeWithjQueryAcceptAndMultiplesExtensions(
}
/**
- * Test that RequestHandler does not set $this->ext when multple accepts are sent.
+ * Test that RequestHandler does not set $this->ext when multiple accepts are sent.
*
* @return void
*/
@@ -24,15 +24,14 @@
* TestSecurityComponent
*
* @package Cake.Test.Case.Controller.Component
-* @package Cake.Test.Case.Controller.Component
*/
class TestSecurityComponent extends SecurityComponent {
/**
* validatePost method
*
* @param Controller $controller
- * @return unknown
+ * @return boolean
*/
public function validatePost($controller) {
return $this->_validatePost($controller);
@@ -43,7 +42,6 @@ public function validatePost($controller) {
* SecurityTestController
*
* @package Cake.Test.Case.Controller.Component
-* @package Cake.Test.Case.Controller.Component
*/
class SecurityTestController extends Controller {
@@ -64,7 +62,7 @@ class SecurityTestController extends Controller {
/**
* failed property
*
- * @var bool false
+ * @var boolean false
*/
public $failed = false;
@@ -97,7 +95,7 @@ public function redirect($url, $status = null, $exit = true) {
}
/**
- * Conveinence method for header()
+ * Convenience method for header()
*
* @param string $status
* @return void
@@ -162,7 +160,7 @@ public function tearDown() {
}
/**
- * test that initalize can set properties.
+ * test that initialize can set properties.
*
* @return void
*/
@@ -150,7 +150,7 @@ public function testComponentParamMergingNoDuplication() {
$Controller->constructClasses();
$expected = array('MergeVar' => array('flag', 'otherFlag', 'redirect' => false));
- $this->assertEquals($Controller->components, $expected, 'Duplication of settings occured. %s');
+ $this->assertEquals($Controller->components, $expected, 'Duplication of settings occurred. %s');
}
/**
@@ -177,7 +177,7 @@ public function testHelperSettingMergingNoDuplication() {
$Controller->constructClasses();
$expected = array('MergeVar' => array('format' => 'html', 'terse'));
- $this->assertEquals($Controller->helpers, $expected, 'Duplication of settings occured. %s');
+ $this->assertEquals($Controller->helpers, $expected, 'Duplication of settings occurred. %s');
}
/**
@@ -216,7 +216,7 @@ public function testPathNotFound() {
}
/**
- * Tests that CakePlugin::loadAll() will load all plgins in the configured folder
+ * Tests that CakePlugin::loadAll() will load all plugins in the configured folder
*
* @return void
*/
@@ -227,7 +227,7 @@ public function testLoadAll() {
}
/**
- * Tests that CakePlugin::loadAll() will load all plgins in the configured folder with bootstrap loading
+ * Tests that CakePlugin::loadAll() will load all plugins in the configured folder with bootstrap loading
*
* @return void
*/
@@ -242,7 +242,7 @@ public function testLoadAllWithDefaults() {
}
/**
- * Tests that CakePlugin::loadAll() will load all plgins in the configured folder wit defaults
+ * Tests that CakePlugin::loadAll() will load all plugins in the configured folder wit defaults
* and overrides for a plugin
*
* @return void
@@ -305,7 +305,7 @@ public function testStoreAndRestoreWithData() {
Configure::write('testing', 'value');
Configure::store('store_test', 'default', array('store_test' => 'one'));
Configure::delete('testing');
- $this->assertNull(Configure::read('store_test'), 'Calling store with data shouldnt modify runtime.');
+ $this->assertNull(Configure::read('store_test'), 'Calling store with data shouldn\'t modify runtime.');
Configure::restore('store_test', 'default');
$this->assertEquals('one', Configure::read('store_test'));
@@ -131,7 +131,7 @@ public function testConfig() {
}
/**
- * explict tests for drop()
+ * explicit tests for drop()
*
* @return void
**/
@@ -30,7 +30,6 @@
* Test Person class - self joined model
*
* @package Cake.Test.Case.Model.Behavior
-* @package Cake.Test.Case.Model.Behavior
*/
class AclPerson extends CakeTestModel {
@@ -105,7 +104,6 @@ public function parentNode() {
* AclUser class
*
* @package Cake.Test.Case.Model.Behavior
-* @package Cake.Test.Case.Model.Behavior
*/
class AclUser extends CakeTestModel {
@@ -143,7 +141,6 @@ public function parentNode() {
* AclPost class
*
* @package Cake.Test.Case.Model.Behavior
-* @package Cake.Test.Case.Model.Behavior
*/
class AclPost extends CakeTestModel {
@@ -181,7 +178,6 @@ public function parentNode() {
* AclBehaviorTest class
*
* @package Cake.Test.Case.Model.Behavior
-* @package Cake.Test.Case.Model.Behavior
*/
class AclBehaviorTest extends CakeTestCase {
@@ -870,7 +870,7 @@ public function testTranslateTableWithPrefix() {
}
/**
- * Test infinite loops not occuring with unbindTranslation()
+ * Test infinite loops not occurring with unbindTranslation()
*
* @return void
*/
@@ -151,11 +151,11 @@ public function testDetectInvalidParent() {
}
/**
- * testDetectNoneExistantParent method
+ * testDetectNoneExistentParent method
*
* @return void
*/
- public function testDetectNoneExistantParent() {
+ public function testDetectNoneExistentParent() {
extract($this->settings);
$this->Tree = new $modelClass();
$this->Tree->initialize(2, 2);
@@ -550,7 +550,7 @@ public function testDetachWithPluginNames() {
}
/**
- * test that attaching a non existant Behavior triggers a cake error.
+ * test that attaching a non existent Behavior triggers a cake error.
*
* @expectedException MissingBehaviorException
* @return void
@@ -793,7 +793,8 @@ public function testBehaviorHasOneFindCallbacks() {
);
//$this->assertEquals($Apple->find('all'), $expected);
}
- /**
+
+/**
* testBehaviorBelongsToFindCallbacks method
*
* @return void
@@ -1167,7 +1168,7 @@ public function testHasMethodMappedMethods() {
}
/**
- * test hasMethod returrning a 'callback'
+ * test hasMethod returning a 'callback'
*
* @return void
*/
@@ -222,7 +222,7 @@ public function teardown($version) {
}
/**
- * SchmeaPost class
+ * SchemaPost class
*
* @package Cake.Test.Case.Model
*/
@@ -341,7 +341,7 @@ class SchemaDatatype extends CakeTestModel {
* Testdescribe class
*
* This class is defined purely to inherit the cacheSources variable otherwise
- * testSchemaCreatTable will fail if listSources has already been called and
+ * testSchemaCreateTable will fail if listSources has already been called and
* its source cache populated - I.e. if the test is run within a group
*
* @uses CakeTestModel
@@ -348,7 +348,7 @@ public function testDelete() {
* @return void
*/
public function testDestroy() {
- TestCakeSession::write('bulletProof', 'invicible');
+ TestCakeSession::write('bulletProof', 'invincible');
$id = TestCakeSession::id();
TestCakeSession::destroy();
@@ -581,7 +581,7 @@ public function testName() {
}
/**
- * test that cacheMethod works as exepected
+ * test that cacheMethod works as expected
*
* @return void
*/
@@ -7692,7 +7692,7 @@ public function testVirtualFieldsOrder() {
*
*/
public function testVirtualFieldsMysql() {
- $this->skipIf(!($this->db instanceof Mysql), 'The rest of virtualFieds test only compatible with Mysql.');
+ $this->skipIf(!($this->db instanceof Mysql), 'The rest of virtualFields test only compatible with Mysql.');
$this->loadFixtures('Post', 'Author');
$Post = ClassRegistry::init('Post');
Oops, something went wrong.

0 comments on commit 4176e59

Please sign in to comment.