Skip to content

Commit

Permalink
Replacing more string to match new paths
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed May 13, 2011
1 parent 2a54f09 commit d24aca3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Test/Case/Console/Command/Task/TemplateTaskTest.php
Expand Up @@ -126,7 +126,7 @@ public function testGetThemePath() {
public function testGenerate() {
App::build(array(
'Console' => array(
LIBS . 'tests' . DS . 'test_app' . DS . 'console' . DS
LIBS . 'Test' . DS . 'test_app' . DS . 'console' . DS
)
));
$this->Task->initialize();
Expand All @@ -146,7 +146,7 @@ public function testGenerate() {
public function testGenerateWithTemplateFallbacks() {
App::build(array(
'Console' => array(
LIBS . 'tests' . DS . 'test_app' . DS . 'console' . DS,
LIBS . 'Test' . DS . 'test_app' . DS . 'console' . DS,
CAKE_CORE_INCLUDE_PATH . DS . 'console' . DS
)
));
Expand Down
4 changes: 2 additions & 2 deletions lib/Cake/Test/Case/TestSuite/CakeTestCaseTest.php
Expand Up @@ -36,8 +36,8 @@
class CakeTestCaseTest extends CakeTestCase {

public static function setUpBeforeClass() {
require_once LIBS . 'tests' . DS . 'Fixture' . DS . 'AssertTagsTestCase.php';
require_once LIBS . 'tests' . DS . 'Fixture' . DS . 'FixturizedTestCase.php';
require_once LIBS . 'Test' . DS . 'Fixture' . DS . 'AssertTagsTestCase.php';
require_once LIBS . 'Test' . DS . 'Fixture' . DS . 'FixturizedTestCase.php';
}

/**
Expand Down
10 changes: 5 additions & 5 deletions lib/Cake/Test/Case/Utility/XmlTest.php
Expand Up @@ -133,7 +133,7 @@ public function testBuild() {
$this->assertEqual($obj->firstChild->nodeName, 'tag');
$this->assertEqual($obj->firstChild->nodeValue, 'value');

$xml = LIBS . 'tests' . DS . 'Fixture' . DS . 'sample.xml';
$xml = LIBS . 'Test' . DS . 'Fixture' . DS . 'sample.xml';
$obj = Xml::build($xml);
$this->assertEqual($obj->getName(), 'tags');
$this->assertEqual(count($obj), 2);
Expand Down Expand Up @@ -374,7 +374,7 @@ public function testToArray() {
$obj = Xml::build($xml);
$this->assertEqual(Xml::toArray($obj), array('tag' => 'name'));

$xml = LIBS . 'tests' . DS . 'Fixture' . DS . 'sample.xml';
$xml = LIBS . 'Test' . DS . 'Fixture' . DS . 'sample.xml';
$obj = Xml::build($xml);
$expected = array(
'tags' => array(
Expand Down Expand Up @@ -516,7 +516,7 @@ public function testToArray() {
* @return void
*/
public function testRss() {
$rss = file_get_contents(LIBS . 'tests' . DS . 'Fixture' . DS . 'rss.xml');
$rss = file_get_contents(LIBS . 'Test' . DS . 'Fixture' . DS . 'rss.xml');
$rssAsArray = Xml::toArray(Xml::build($rss));
$this->assertEqual($rssAsArray['rss']['@version'], '2.0');
$this->assertEqual(count($rssAsArray['rss']['channel']['item']), 2);
Expand Down Expand Up @@ -647,7 +647,7 @@ public function testXmlRpc() {
* @return void
*/
public function testSoap() {
$xmlRequest = Xml::build(LIBS . 'tests' . DS . 'Fixture' . DS . 'soap_request.xml');
$xmlRequest = Xml::build(LIBS . 'Test' . DS . 'Fixture' . DS . 'soap_request.xml');
$expected = array(
'Envelope' => array(
'@soap:encodingStyle' => 'http://www.w3.org/2001/12/soap-encoding',
Expand All @@ -660,7 +660,7 @@ public function testSoap() {
);
$this->assertEqual(Xml::toArray($xmlRequest), $expected);

$xmlResponse = Xml::build(LIBS . 'tests' . DS . 'Fixture' . DS . 'soap_response.xml');
$xmlResponse = Xml::build(LIBS . 'Test' . DS . 'Fixture' . DS . 'soap_response.xml');
$expected = array(
'Envelope' => array(
'@soap:encodingStyle' => 'http://www.w3.org/2001/12/soap-encoding',
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/TestSuite/Fixture/CakeFixtureManager.php
Expand Up @@ -105,7 +105,7 @@ protected function _loadFixtures($fixtures) {

if (strpos($fixture, 'core.') === 0) {
$fixture = substr($fixture, strlen('core.'));
$fixturePaths[] = LIBS . 'tests' . DS . 'Fixture';
$fixturePaths[] = LIBS . 'Test' . DS . 'Fixture';
} elseif (strpos($fixture, 'app.') === 0) {
$fixture = substr($fixture, strlen('app.'));
$fixturePaths = array(
Expand Down

0 comments on commit d24aca3

Please sign in to comment.