Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix tests on windows
  • Loading branch information
euromark committed Jun 27, 2014
1 parent fe33598 commit c768756
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions tests/TestCase/Database/Schema/MysqlSchemaTest.php
Expand Up @@ -723,7 +723,7 @@ public function testCreateSql() {
SQL;
$result = $table->createSql($connection);
$this->assertCount(1, $result);
$this->assertEquals($expected, $result[0]);
$this->assertTextEquals($expected, $result[0]);
}

/**
Expand Down Expand Up @@ -779,7 +779,7 @@ public function testCreateSqlCompositeIntegerKey() {
SQL;
$result = $table->createSql($connection);
$this->assertCount(1, $result);
$this->assertEquals($expected, $result[0]);
$this->assertTextEquals($expected, $result[0]);

$table = (new Table('composite_key'))
->addColumn('id', [
Expand All @@ -805,7 +805,7 @@ public function testCreateSqlCompositeIntegerKey() {
SQL;
$result = $table->createSql($connection);
$this->assertCount(1, $result);
$this->assertEquals($expected, $result[0]);
$this->assertTextEquals($expected, $result[0]);
}

/**
Expand Down
8 changes: 4 additions & 4 deletions tests/TestCase/Database/Schema/PostgresSchemaTest.php
Expand Up @@ -646,7 +646,7 @@ public function testConstraintSql($name, $data, $expected) {
'type' => 'integer',
])->addConstraint($name, $data);

$this->assertEquals($expected, $schema->constraintSql($table, $name));
$this->assertTextEquals($expected, $schema->constraintSql($table, $name));
}

/**
Expand Down Expand Up @@ -692,7 +692,7 @@ public function testCreateSql() {
$result = $table->createSql($connection);

$this->assertCount(3, $result);
$this->assertEquals($expected, $result[0]);
$this->assertTextEquals($expected, $result[0]);
$this->assertEquals(
'CREATE INDEX "title_idx" ON "schema_articles" ("title")',
$result[1]
Expand Down Expand Up @@ -756,7 +756,7 @@ public function testCreateSqlCompositeIntegerKey() {
SQL;
$result = $table->createSql($connection);
$this->assertCount(1, $result);
$this->assertEquals($expected, $result[0]);
$this->assertTextEquals($expected, $result[0]);

$table = (new Table('composite_key'))
->addColumn('id', [
Expand All @@ -782,7 +782,7 @@ public function testCreateSqlCompositeIntegerKey() {
SQL;
$result = $table->createSql($connection);
$this->assertCount(1, $result);
$this->assertEquals($expected, $result[0]);
$this->assertTextEquals($expected, $result[0]);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Database/Schema/SqliteSchemaTest.php
Expand Up @@ -772,7 +772,7 @@ public function testCreateSqlCompositeIntegerKey() {
SQL;
$result = $table->createSql($connection);
$this->assertCount(1, $result);
$this->assertEquals($expected, $result[0]);
$this->assertTextEquals($expected, $result[0]);

// Sqlite only supports AUTO_INCREMENT on single column primary
// keys. Ensure that schema data follows the limitations of Sqlite.
Expand Down Expand Up @@ -800,7 +800,7 @@ public function testCreateSqlCompositeIntegerKey() {
SQL;
$result = $table->createSql($connection);
$this->assertCount(1, $result);
$this->assertEquals($expected, $result[0]);
$this->assertTextEquals($expected, $result[0]);
}

/**
Expand Down

0 comments on commit c768756

Please sign in to comment.