Browse Source

Fixing typos and removing dead code

Jose Lorenzo Rodriguez 12 years ago
parent
commit
1d90d29fee

+ 2 - 2
src/Database/Expression/TupleComparison.php

@@ -110,9 +110,9 @@ class TupleComparison extends Comparison {
 
 /**
  * Traverses the tree of expressions stored in this object, visiting first
- * expressions in the left hand side and the the rest.
+ * expressions in the left hand side and then the rest.
  *
- * Callback function receives as only argument an instance of a ExpresisonInterface
+ * Callback function receives as its only argument an instance of an ExpresisonInterface
  *
  * @param callable $callable
  * @return void

+ 1 - 1
src/ORM/Association/ExternalAssociationTrait.php

@@ -186,7 +186,7 @@ trait ExternalAssociationTrait {
  * be done with multiple foreign keys
  *
  * @param array $resultMap a keyed arrays containing the target table
- * @param array $sourceKeys an array witha aliased keys to match
+ * @param array $sourceKeys an array with aliased keys to match
  * @param string $nestKey the key under which results should be nested
  * @return \Closure
  */

+ 1 - 1
tests/TestCase/Database/Schema/SqliteSchemaTest.php

@@ -160,7 +160,7 @@ class SqliteSchemaTest extends TestCase {
  *
  * @return void
  */
-	public function testCovenrtCompositPrimaryKey() {
+	public function testConvertCompositPrimaryKey() {
 		$driver = $this->getMock('Cake\Database\Driver\Sqlite');
 		$dialect = new SqliteSchema($driver);
 

+ 0 - 1
tests/TestCase/ORM/CompositeKeysTest.php

@@ -76,7 +76,6 @@ class CompositeKeyTest extends TestCase {
  */
 	public function testHasManyEager($strategy) {
 		$table = TableRegistry::get('SiteAuthors');
-		TableRegistry::get('SiteArticles');
 		$table->hasMany('SiteArticles', [
 			'propertyName' => 'articles',
 			'strategy' => $strategy,