Skip to content
Permalink
Browse files

Using AssertSame instead of AssertEquals.

  • Loading branch information...
T0mats0 committed Apr 2, 2018
1 parent 77a6dc1 commit 0fe1830b1cfca65643960e5a28865602fda0287e
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/TestCase/Database/QueryTest.php
@@ -4712,7 +4712,7 @@ public function testFetchColumn()
->limit(1);
$statement = $query->execute();
$results = $statement->fetchColumn(0);
$this->assertEquals('2', $results[0]);
$this->assertSame('2', $results[0]);
}
/**
@@ -4734,11 +4734,11 @@ public function testFetchAllAssocColumn()
->from('profiles');
$statement = $query->execute();
$results = $statement->fetchAssoc();
$this->assertEquals('1', $results['id']);
$this->assertSame('1', $results['id']);
$results = $statement->fetchAssoc();
$this->assertEquals('2', $results['id']);
$this->assertSame('2', $results['id']);
$results = $statement->fetchColumn(0);
$this->assertEquals('3', $results[0]);
$this->assertSame('3', $results[0]);
}
}

0 comments on commit 0fe1830

Please sign in to comment.
You can’t perform that action at this time.