Skip to content

Commit

Permalink
Merge pull request #1455 from samsonasik/unignore-database-migration-…
Browse files Browse the repository at this point in the history
…directory

WIP un-ignore application/Database/Migrations directory from .gitignore
  • Loading branch information
jim-parry authored Nov 20, 2018
2 parents 82f8be4 + 9c73d4a commit 35cf249
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ writable/uploads/*

writable/debugbar/*

application/Database/Migrations/2*

php_errors.log

#-------------------------
Expand Down
13 changes: 13 additions & 0 deletions tests/system/Commands/SessionsCommandsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class SessionsCommandsTest extends \CIUnitTestCase
protected $response;
protected $logger;
protected $runner;
private $result;

public function setUp()
{
Expand Down Expand Up @@ -51,6 +52,14 @@ public function setUp()
public function tearDown()
{
stream_filter_remove($this->stream_filter);

$result = remove_invisible_characters($this->result);
$result = str_replace('[0;32m', '', $result);
$result = str_replace('[0m', '', $result);
$file = trim(substr($result, 14));
$file = str_replace('APPPATH', APPPATH, $file);

unlink($file);
}

public function testCreateMigrationCommand()
Expand All @@ -64,6 +73,8 @@ public function testCreateMigrationCommand()
$this->assertContains('Created file:', $result);
$this->assertContains('APPPATH/Database/Migrations/', $result);
$this->assertContains('_create_ci_sessions_table.php', $result);

$this->result = $result;
}

public function testOverriddenCreateMigrationCommand()
Expand All @@ -84,6 +95,8 @@ public function testOverriddenCreateMigrationCommand()
$this->assertContains('Created file:', $result);
$this->assertContains('APPPATH/Database/Migrations/', $result);
$this->assertContains('_create_mygoodies_table.php', $result);

$this->result = $result;
}

}

0 comments on commit 35cf249

Please sign in to comment.