Browse Source

Removed test that was failing. Looks like it's in master but not 3.next.

Eugene Ritter 8 years ago
parent
commit
d09f978010
1 changed files with 0 additions and 21 deletions
  1. 0 21
      tests/TestCase/ORM/QueryTest.php

+ 0 - 21
tests/TestCase/ORM/QueryTest.php

@@ -3564,27 +3564,6 @@ class QueryTest extends TestCase
     }
 
     /**
-     * Test that type conversion is only applied once.
-     *
-     * @return void
-     */
-    public function testAllNoDuplicateTypeCasting()
-    {
-        $table = $this->getTableLocator()->get('Comments');
-        $query = $table->find()
-            ->select(['id', 'comment', 'created']);
-
-        // Convert to an array and make the query dirty again.
-        $result = $query->all()->toArray();
-        $query->limit(99);
-
-        // Get results a second time.
-        $result2 = $query->all()->toArray();
-
-        $this->assertEquals(1, $query->__debugInfo()['decorators'], 'Only one typecaster should exist');
-    }
-
-    /**
      * Test to see that the excluded fields are not in the select clause
      *
      * @return void