Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing failing test.

  • Loading branch information...
commit 475cd293b71365e765857693400468713a373191 1 parent e9e3ed4
@jwage jwage authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/Ticket/DC843TestCase.php
View
6 tests/Ticket/DC843TestCase.php
@@ -50,7 +50,7 @@ public function testWithMagicMethod()
{
Doctrine::getTable('Ticket_DC843_Model')->findByUsernameAndFoo('foo', 'bar');
- $expected = "SELECT [t].[model_id] AS [t__model_id], [t].[username] AS [t__username], [t].[password] AS [t__password], [t].[foo] AS [t__foo] FROM [ticket__d_c843__model] [t] WHERE ([t].[username] = 'foo' AND [t].[foo] LIKE 'bar')";
+ $expected = "SELECT [t].[model_id] AS [t__model_id], [t].[username] AS [t__username], [t].[password] AS [t__password], [t].[foo] AS [t__foo] FROM [ticket__d_c843__model] [t] WHERE ([t].[username] = 'foo' AND [t].[foo] LIKE 'bar')";
$sql = current(array_slice($this->dbh->getAll(), $this->sqlStackCounter++, 1));
$this->assertEqual($expected, $sql);
@@ -64,7 +64,7 @@ public function testQuery()
->andWhere('t.foo = ?', 'bar')
->execute();
- $expected = "SELECT [t].[model_id] AS [t__model_id], [t].[username] AS [t__username], [t].[password] AS [t__password], [t].[foo] AS [t__foo] FROM [ticket__d_c843__model] [t] WHERE ([t].[username] = 'foo' AND [t].[foo] LIKE 'bar')";
+ $expected = "SELECT [t].[model_id] AS [t__model_id], [t].[username] AS [t__username], [t].[password] AS [t__password], [t].[foo] AS [t__foo] FROM [ticket__d_c843__model] [t] WHERE ([t].[username] = 'foo' AND [t].[foo] LIKE 'bar')";
$sql = current(array_slice($this->dbh->getAll(), $this->sqlStackCounter++, 1));
$this->assertEqual($expected, $sql);
@@ -78,7 +78,7 @@ public function testQueryWithLike()
->andWhere('t.foo = ?', 'bar')
->execute();
- $expected = "SELECT [t].[model_id] AS [t__model_id], [t].[username] AS [t__username], [t].[password] AS [t__password], [t].[foo] AS [t__foo] FROM [ticket__d_c843__model] [t] WHERE ([t].[username] LIKE 'foo' AND [t].[foo] LIKE 'bar')";
+ $expected = "SELECT [t].[model_id] AS [t__model_id], [t].[username] AS [t__username], [t].[password] AS [t__password], [t].[foo] AS [t__foo] FROM [ticket__d_c843__model] [t] WHERE ([t].[username] LIKE 'foo' AND [t].[foo] LIKE 'bar')";
$sql = current(array_slice($this->dbh->getAll(), $this->sqlStackCounter++, 1));
$this->assertEqual($expected, $sql);
Please sign in to comment.
Something went wrong with that request. Please try again.