Skip to content

Commit 4d0faec

Browse files
author
Valentin V / vvval
committed
Revert redundant updates
1 parent 27f9f98 commit 4d0faec

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

tests/Migrations/MigratorTest.php

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ public function testConfig(): void
105105
public function testRunUnconfigured(): void
106106
{
107107
$this->expectException(MigrationException::class);
108-
$this->expectExceptionMessage('Unable to run migration, Migrator not configured');
108+
$this->expectExceptionMessage("Unable to run migration, Migrator not configured");
109109

110110
$this->migrator->run();
111111
}
112112

113113
public function testRollbackUnconfigured(): void
114114
{
115115
$this->expectException(MigrationException::class);
116-
$this->expectExceptionMessage('Unable to run migration, Migrator not configured');
116+
$this->expectExceptionMessage("Unable to run migration, Migrator not configured");
117117

118118
$this->migrator->rollback();
119119
}
@@ -134,17 +134,15 @@ public function testCapsuleException(): void
134134
$this->expectException(\Spiral\Migrations\Exception\CapsuleException::class);
135135
$capsule = new Capsule($this->db);
136136

137-
$capsule->execute(
138-
[
139-
$this
140-
]
141-
);
137+
$capsule->execute([
138+
$this
139+
]);
142140
}
143141

144142
public function testNoState(): void
145143
{
146144
$this->expectException(MigrationException::class);
147-
$this->expectExceptionMessage('Unable to get migration state, no state are set');
145+
$this->expectExceptionMessage("Unable to get migration state, no state are set");
148146

149147
$x = new TestMigration();
150148
$x->up();
@@ -153,7 +151,7 @@ public function testNoState(): void
153151
public function testNoCapsule(): void
154152
{
155153
$this->expectException(MigrationException::class);
156-
$this->expectExceptionMessage('Unable to get table blueprint, no capsule are set');
154+
$this->expectExceptionMessage("Unable to get table blueprint, no capsule are set");
157155

158156
$x = new TestMigration();
159157
$x->getTable();
@@ -162,7 +160,7 @@ public function testNoCapsule(): void
162160
public function testNoCapsule2(): void
163161
{
164162
$this->expectException(MigrationException::class);
165-
$this->expectExceptionMessage('Unable to get database, no capsule are set');
163+
$this->expectExceptionMessage("Unable to get database, no capsule are set");
166164

167165
$x = new TestMigration();
168166
$x->down();

0 commit comments

Comments
 (0)