Browse Source

Changing test to avoid weirdness in travis

Jose Lorenzo Rodriguez 10 years ago
parent
commit
7f00058ce9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tests/TestCase/Database/QueryTest.php

+ 3 - 3
tests/TestCase/Database/QueryTest.php

@@ -416,8 +416,8 @@ class QueryTest extends TestCase
         $query = new Query($this->connection);
         $types = ['created' => 'datetime'];
         $result = $query
-            ->select(['title', 'name' => 'comments.comment'])
-            ->from('articles')
+            ->select(['name', 'commentary' => 'comments.comment'])
+            ->from('authors')
             ->innerJoin('comments', function ($exp, $q) use ($query, $types) {
                 $this->assertSame($q, $query);
                 $exp->add(['created >' => new \DateTime('2007-03-18 10:45:23')], $types);
@@ -425,7 +425,7 @@ class QueryTest extends TestCase
             })
             ->execute();
         $this->assertEquals(
-            ['title' => 'First Article', 'name' => 'Second Comment for First Article'],
+            ['name' => 'mariano', 'commentary' => 'Second Comment for First Article'],
             $result->fetch('assoc')
         );
         $result->closeCursor();