Browse Source

Fixing test case by using a less annoying expression

Jose Lorenzo Rodriguez 11 years ago
parent
commit
0d61776c5b
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/ORM/Query.php
  2. 2 2
      tests/TestCase/ORM/QueryTest.php

+ 1 - 1
src/ORM/Query.php

@@ -125,7 +125,7 @@ class Query extends DatabaseQuery implements JsonSerializable
     }
 
     /**
-     * {@inheritDocs}
+     * {@inheritDoc}
      *
      * If you pass an instance of a `Cake\ORM\Table` or `Cake\ORM\Association` class,
      * all the fields in the schema of the table or the association will be added to

+ 2 - 2
tests/TestCase/ORM/QueryTest.php

@@ -2662,7 +2662,7 @@ class QueryTest extends TestCase
         $table->belongsTo('authors');
         $result = $table
             ->find()
-            ->select(['foo' => 'Authors.id'])
+            ->select(['foo' => '1 + 1'])
             ->select($table)
             ->select($table->authors)
             ->contain(['authors'])
@@ -2670,7 +2670,7 @@ class QueryTest extends TestCase
 
         $expected = $table
             ->find()
-            ->select(['foo' => 'Authors.id'])
+            ->select(['foo' => '1 + 1'])
             ->autoFields(true)
             ->contain(['authors'])
             ->first();