Skip to content
Permalink
Browse files

Fix tests in Win

  • Loading branch information...
dereuromark committed Jul 11, 2014
1 parent c2e2fa6 commit d5710e4431cf1811947e68b2fbec47a0aa3f3c02
@@ -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);
}
@@ -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);
@@ -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]

0 comments on commit d5710e4

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