Skip to content

Commit 27f9f98

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

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

tests/Migrations/AtomizerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public function testCreateAndDiff(): void
3131

3232
$this->assertInstanceOf(Migration::class, $migration);
3333
$this->assertSame(State::STATUS_EXECUTED, $migration->getState()->getStatus());
34+
$this->assertInstanceOf(\DateTimeInterface::class, $migration->getState()->getTimeCreated());
3435
$this->assertInstanceOf(\DateTimeInterface::class, $migration->getState()->getTimeExecuted());
3536

3637
$this->assertTrue($this->db->hasTable('sample'));
@@ -160,7 +161,7 @@ public function testCreateAndThenUpdateAddDefault(): void
160161

161162
$this->migrator->rollback();
162163
$this->assertSame('integer', $this->schema('sample')->column('value')->getAbstractType());
163-
$this->assertNull($this->schema('sample')->column('value')->getDefaultValue());
164+
$this->assertSame(null, $this->schema('sample')->column('value')->getDefaultValue());
164165

165166
$this->assertTrue($this->db->hasTable('sample'));
166167

tests/Migrations/BaseTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -262,21 +262,21 @@ protected function assertSameAsInDB(AbstractTable $current): void
262262
'Primary keys changed'
263263
);
264264

265-
$this->assertCount(
265+
$this->assertSame(
266266
count($source->getColumns()),
267-
$target->getColumns(),
267+
count($target->getColumns()),
268268
'Column number has changed'
269269
);
270270

271-
$this->assertCount(
271+
$this->assertSame(
272272
count($source->getIndexes()),
273-
$target->getIndexes(),
273+
count($target->getIndexes()),
274274
'Index number has changed'
275275
);
276276

277-
$this->assertCount(
277+
$this->assertSame(
278278
count($source->getForeignKeys()),
279-
$target->getForeignKeys(),
279+
count($target->getForeignKeys()),
280280
'FK number has changed'
281281
);
282282

0 commit comments

Comments
 (0)