Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsykun committed Dec 31, 2017
1 parent 5ea1a2e commit 431e88a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/Tests/Unit/Migration/Loader/MigrationsLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ protected function setUp()
$this->kernel,
$this->connection,
$this->container,
$this->eventDispatcher
$this->eventDispatcher,
'Migrations/Schema',
'okvpn_migrations'
);
}

Expand Down
5 changes: 3 additions & 2 deletions src/Tests/Unit/Tools/SchemaDumperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function setUp()
{
$this->twig = $this->getMockBuilder('\Twig_Environment')->disableOriginalConstructor()->getMock();
$this->schema = new Schema();
$this->schemaDumper = new SchemaDumper($this->twig);
$this->schemaDumper = new SchemaDumper($this->twig, 'Migrations/Schema');

$this->schemaDumper->acceptSchema($this->schema);
}
Expand Down Expand Up @@ -58,7 +58,8 @@ public function testDump(
'namespace' => $expectedNamespace,
'className' => $className,
'version' => $version,
'extendedOptions' => $extendedOptions
'extendedOptions' => $extendedOptions,
'migrationPath' => 'Migrations\Schema'
]
)
->will($this->returnValue('TEST'));
Expand Down

0 comments on commit 431e88a

Please sign in to comment.