Skip to content

Commit

Permalink
fixes _tests_ directory
Browse files Browse the repository at this point in the history
  • Loading branch information
antograssiot committed Jul 10, 2014
1 parent bd6a5ee commit 06f6810
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/TestCase/Console/Command/Task/FixtureTaskTest.php
Expand Up @@ -85,7 +85,7 @@ public function testInitializeCopyConnection() {
* @return void
*/
public function testGetPath() {
$this->assertPathEquals(ROOT . '/Test/Fixture/', $this->Task->getPath());
$this->assertPathEquals(ROOT . '/tests/Fixture/', $this->Task->getPath());
}

/**
Expand Down Expand Up @@ -193,7 +193,7 @@ public function testImportRecordsNoEscaping() {
public function testMainWithTableOption() {
$this->Task->connection = 'test';
$this->Task->params = ['table' => 'comments'];
$filename = $this->_normalizePath(ROOT . '/Test/Fixture/ArticleFixture.php');
$filename = $this->_normalizePath(ROOT . '/tests/Fixture/ArticleFixture.php');

$this->Task->expects($this->at(0))
->method('createFile')
Expand Down Expand Up @@ -231,12 +231,12 @@ public function testMainIntoAll() {
->method('listAll')
->will($this->returnValue(array('articles', 'comments')));

$filename = $this->_normalizePath(ROOT . '/Test/Fixture/ArticleFixture.php');
$filename = $this->_normalizePath(ROOT . '/tests/Fixture/ArticleFixture.php');
$this->Task->expects($this->at(0))
->method('createFile')
->with($filename, $this->stringContains('class ArticleFixture'));

$filename = $this->_normalizePath(ROOT . '/Test/Fixture/CommentFixture.php');
$filename = $this->_normalizePath(ROOT . '/tests/Fixture/CommentFixture.php');
$this->Task->expects($this->at(1))
->method('createFile')
->with($filename, $this->stringContains('class CommentFixture'));
Expand All @@ -256,12 +256,12 @@ public function testAllWithCountAndRecordsFlags() {
$this->Task->Model->expects($this->any())->method('listAll')
->will($this->returnValue(array('Articles', 'comments')));

$filename = $this->_normalizePath(ROOT . '/Test/Fixture/ArticleFixture.php');
$filename = $this->_normalizePath(ROOT . '/tests/Fixture/ArticleFixture.php');
$this->Task->expects($this->at(0))
->method('createFile')
->with($filename, $this->stringContains("'title' => 'Third Article'"));

$filename = $this->_normalizePath(ROOT . '/Test/Fixture/CommentFixture.php');
$filename = $this->_normalizePath(ROOT . '/tests/Fixture/CommentFixture.php');
$this->Task->expects($this->at(1))
->method('createFile')
->with($filename, $this->stringContains("'comment' => 'First Comment for First Article'"));
Expand All @@ -282,11 +282,11 @@ public function testAllWithSchemaImport() {
$this->Task->Model->expects($this->any())->method('listAll')
->will($this->returnValue(array('Articles', 'comments')));

$filename = $this->_normalizePath(ROOT . '/Test/Fixture/ArticleFixture.php');
$filename = $this->_normalizePath(ROOT . '/tests/Fixture/ArticleFixture.php');
$this->Task->expects($this->at(0))->method('createFile')
->with($filename, $this->stringContains("public \$import = ['model' => 'Articles'"));

$filename = $this->_normalizePath(ROOT . '/Test/Fixture/CommentFixture.php');
$filename = $this->_normalizePath(ROOT . '/tests/Fixture/CommentFixture.php');
$this->Task->expects($this->at(1))->method('createFile')
->with($filename, $this->stringContains("public \$import = ['model' => 'Comments'"));
$this->Task->expects($this->exactly(2))->method('createFile');
Expand All @@ -306,7 +306,7 @@ public function testMainNoArgs() {
->method('listAll')
->will($this->returnValue(['articles', 'comments']));

$filename = $this->_normalizePath(ROOT . '/Test/Fixture/ArticleFixture.php');
$filename = $this->_normalizePath(ROOT . '/tests/Fixture/ArticleFixture.php');
$this->Task->expects($this->never())
->method('createFile');

Expand Down Expand Up @@ -372,7 +372,7 @@ public function testRecordGenerationForBinaryAndFloat() {
*/
public function testGenerateFixtureFile() {
$this->Task->connection = 'test';
$filename = $this->_normalizePath(ROOT . '/Test/Fixture/ArticleFixture.php');
$filename = $this->_normalizePath(ROOT . '/tests/Fixture/ArticleFixture.php');

$this->Task->expects($this->at(0))
->method('createFile')
Expand Down

0 comments on commit 06f6810

Please sign in to comment.