mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing DS for Windows
This commit is contained in:
parent
8d351d90b3
commit
ff04c7668a
2 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,7 @@ class DbConfigTaskTest extends CakeTestCase {
|
|||
$this->Task->Dispatch =& $this->Dispatcher;
|
||||
$this->Task->Dispatch->shellPaths = App::path('shells');
|
||||
|
||||
$this->Task->params['working'] = rtrim(APP, '/');
|
||||
$this->Task->params['working'] = rtrim(APP, DS);
|
||||
$this->Task->databaseClassName = 'TEST_DATABASE_CONFIG';
|
||||
}
|
||||
|
||||
|
|
|
@ -96,10 +96,10 @@ class FixtureTaskTest extends CakeTestCase {
|
|||
* @return void
|
||||
**/
|
||||
function testConstruct() {
|
||||
$this->Dispatch->params['working'] = '/my/path';
|
||||
$this->Dispatch->params['working'] = DS . 'my' . DS . 'path';
|
||||
$Task =& new FixtureTask($this->Dispatch);
|
||||
|
||||
$expected = '/my/path/tests/fixtures/';
|
||||
$expected = DS . 'my' . DS . 'path' . DS . 'tests' . DS . 'fixtures' . DS;
|
||||
$this->assertEqual($Task->path, $expected);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue