Skip to content

Commit

Permalink
Fix tests in Win
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Jul 11, 2014
1 parent c2e2fa6 commit d5710e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -413,7 +413,7 @@ public function testNoViewClassExtension() {
$event = new Event('Controller.startup', $this->Controller);
$this->RequestHandler->initialize($event);
$this->RequestHandler->startup($event);
$this->assertEquals('RequestHandlerTest/csv', $this->Controller->viewPath);
$this->assertEquals('RequestHandlerTest' . DS . 'csv', $this->Controller->viewPath);
$this->assertEquals('csv', $this->Controller->layoutPath);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Controller/ControllerTest.php
Expand Up @@ -831,7 +831,7 @@ public function testViewPathConventions() {
));
$response = $this->getMock('Cake\Network\Response');
$Controller = new \TestApp\Controller\Admin\PostsController($request, $response);
$this->assertEquals('Admin/Posts', $Controller->viewPath);
$this->assertEquals('Admin' . DS . 'Posts', $Controller->viewPath);

$request = new Request('pages/home');
$Controller = new \TestApp\Controller\PagesController($request, $response);
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Database/Schema/SqliteSchemaTest.php
Expand Up @@ -712,7 +712,7 @@ public function testCreateSql() {
SQL;
$result = $table->createSql($connection);
$this->assertCount(2, $result);
$this->assertEquals($expected, $result[0]);
$this->assertTextEquals($expected, $result[0]);
$this->assertEquals(
'CREATE INDEX "title_idx" ON "articles" ("title")',
$result[1]
Expand Down

0 comments on commit d5710e4

Please sign in to comment.