Skip to content

Commit

Permalink
Twig 3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsykun committed Jan 17, 2020
1 parent 872c47e commit a4d9aa6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function testExecuteUp()
->method('executeQuery')
->with(
'CREATE TABLE test1table (id INT NOT NULL) DEFAULT CHARACTER SET utf8 '
. 'COLLATE utf8_unicode_ci ENGINE = InnoDB'
. 'COLLATE `utf8_unicode_ci` ENGINE = InnoDB'
);
$this->connection->expects($this->at(5))
->method('executeQuery')
Expand All @@ -58,7 +58,7 @@ public function testExecuteUp()
'CREATE TABLE TEST (id INT AUTO_INCREMENT NOT NULL)',
'> ' . get_class($migration11),
'CREATE TABLE test1table (id INT NOT NULL) DEFAULT CHARACTER SET utf8 '
. 'COLLATE utf8_unicode_ci ENGINE = InnoDB',
. 'COLLATE `utf8_unicode_ci` ENGINE = InnoDB',
'ALTER TABLE TEST ADD COLUMN test_column INT NOT NULL',
],
$messages
Expand All @@ -85,7 +85,7 @@ public function testExecuteUpWithDryRun()
'CREATE TABLE TEST (id INT AUTO_INCREMENT NOT NULL)',
'> ' . get_class($migration11),
'CREATE TABLE test1table (id INT NOT NULL) DEFAULT CHARACTER SET utf8 '
. 'COLLATE utf8_unicode_ci ENGINE = InnoDB',
. 'COLLATE `utf8_unicode_ci` ENGINE = InnoDB',
'ALTER TABLE TEST ADD COLUMN test_column INT NOT NULL',
],
$messages
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Unit/Tools/SchemaDumperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class SchemaDumperTest extends \PHPUnit_Framework_TestCase

protected function setUp()
{
$this->twig = $this->getMockBuilder('\Twig_Environment')->disableOriginalConstructor()->getMock();
$this->twig = $this->getMockBuilder('Twig\Environment')->disableOriginalConstructor()->getMock();
$this->schema = new Schema();
$this->schemaDumper = new SchemaDumper($this->twig, 'Migrations/Schema');

Expand Down

0 comments on commit a4d9aa6

Please sign in to comment.