File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments